#807: small refactoring
This commit is contained in:
parent
c4f260c7f5
commit
67a4dbc243
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue