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