From 67a4dbc2437a382b62cfa325b64fc1ccddadbdea Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 25 Dec 2012 17:59:31 +0400 Subject: [PATCH] #807: small refactoring --- app/models/build_list.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index bfff7b85a..b519684af 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -268,7 +268,7 @@ class BuildList < ActiveRecord::Base end def publish_container - type = save_to_platform.distrib_type + type = build_for_platform.distrib_type archive = results.select{ |r| r['file_name'] =~ /.*\.tar\.gz$/}[0] platform_path = "#{APP_CONFIG['root_path']}/platforms/#{save_to_platform.name}/repository" @@ -276,7 +276,6 @@ class BuildList < ActiveRecord::Base platform_path << '/' platform_path << build_for_platform.name Dir.mkdir(platform_path) unless File.exists?(platform_path) - type = build_for_platform.distrib_type end Resque.push(