#807: small refactoring

This commit is contained in:
Vokhmin Alexey V 2012-12-25 17:59:31 +04:00
parent c4f260c7f5
commit 67a4dbc243
1 changed files with 1 additions and 2 deletions

View File

@ -268,7 +268,7 @@ class BuildList < ActiveRecord::Base
end end
def publish_container 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] archive = results.select{ |r| r['file_name'] =~ /.*\.tar\.gz$/}[0]
platform_path = "#{APP_CONFIG['root_path']}/platforms/#{save_to_platform.name}/repository" platform_path = "#{APP_CONFIG['root_path']}/platforms/#{save_to_platform.name}/repository"
@ -276,7 +276,6 @@ class BuildList < ActiveRecord::Base
platform_path << '/' platform_path << '/'
platform_path << build_for_platform.name platform_path << build_for_platform.name
Dir.mkdir(platform_path) unless File.exists?(platform_path) Dir.mkdir(platform_path) unless File.exists?(platform_path)
type = build_for_platform.distrib_type
end end
Resque.push( Resque.push(