fix according to documentation

This commit is contained in:
Alexey Nayden 2011-04-14 13:25:29 +04:00
parent 6fe93380f5
commit 9384f7f143
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class Platform < ActiveRecord::Base
end
def xml_rpc_create
result = BuildServer.add_platform name, build_path(unixname), [], git_path(unixname)
result = BuildServer.add_platform name, build_path(unixname), []
if result == BuildServer::SUCCESS
return true
else

View File

@ -22,9 +22,9 @@ class BuildServer
end
def self.add_platform name, root_folder, repos = [], git_path = nil
def self.add_platform name, root_folder, repos = []
Rails.logger.info "add_platform start"
self.client.call('add_platform', name, git_path, root_folder, repos)
self.client.call('add_platform', name, root_folder, repos)
Rails.logger.info "add_platform ok"
end