xmlrpc fixes

This commit is contained in:
Alexey Nayden 2011-04-14 15:24:41 +04:00
parent bf14ad4032
commit a717bbc1d5
2 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ class Platform < ActiveRecord::Base
end
def xml_rpc_create
result = BuildServer.add_platform name, APP_CONFIG['root_path']
result = BuildServer.add_platform unixname, APP_CONFIG['root_path']
if result == BuildServer::SUCCESS
return true
else
@ -59,17 +59,17 @@ class Platform < ActiveRecord::Base
end
def xml_rpc_destroy
result = BuildServer.delete_platform name
result = BuildServer.delete_platform unixname
if result == BuildServer::SUCCESS
return true
else
raise "Failed to delete platform #{name}."
raise "Failed to delete platform #{unixname}."
end
end
def check_freezing
if released_changed?
BuildServer.freeze_platform self.name
BuildServer.freeze_platform self.unixname
end
end
end

View File

@ -40,7 +40,7 @@ class Repository < ActiveRecord::Base
end
def xml_rpc_create
result = BuildServer.create_repo name, platform.name
result = BuildServer.create_repo unixname, platform.unixname
if result == BuildServer::SUCCESS
return true
else
@ -49,7 +49,7 @@ class Repository < ActiveRecord::Base
end
def xml_rpc_destroy
result = BuildServer.delete_repo name, platform.name
result = BuildServer.delete_repo unixname, platform.unixname
if result == BuildServer::SUCCESS
return true
else