From 9384f7f1437b51dcd8e8afc02e84a3dabd2ca018 Mon Sep 17 00:00:00 2001 From: Alexey Nayden Date: Thu, 14 Apr 2011 13:25:29 +0400 Subject: [PATCH] fix according to documentation --- app/models/platform.rb | 2 +- lib/build_server.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/platform.rb b/app/models/platform.rb index b1da53c3c..4083b6166 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -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 diff --git a/lib/build_server.rb b/lib/build_server.rb index 84765d429..2144fbb1e 100644 --- a/lib/build_server.rb +++ b/lib/build_server.rb @@ -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