fix up packaging after moving tasks
This commit is contained in:
1 parent
9652c285f1
commit
6b5ed495d5
1 file changed
+5
-6
+5
-6
@@ -21,7 +21,7 @@ end
|
|||||||
GEM_BLACKLIST = %w( bundler foreman )
|
GEM_BLACKLIST = %w( bundler foreman )
|
||||||
|
|
||||||
def assemble_gems(target_dir=Dir.pwd)
|
def assemble_gems(target_dir=Dir.pwd)
|
||||||
lines = %x{ bundle show }.strip.split("\n")
|
lines = %x{ cd #{project_root} && bundle show }.strip.split("\n")
|
||||||
raise "error running bundler" unless $?.success?
|
raise "error running bundler" unless $?.success?
|
||||||
|
|
||||||
%x{ env BUNDLE_WITHOUT="development:test" bundle show }.split("\n").each do |line|
|
%x{ env BUNDLE_WITHOUT="development:test" bundle show }.split("\n").each do |line|
|
||||||
@@ -47,8 +47,7 @@ def distribution_files(type=nil)
|
|||||||
require "foreman/distribution"
|
require "foreman/distribution"
|
||||||
base_files = Foreman::Distribution.files
|
base_files = Foreman::Distribution.files
|
||||||
type_files = type ?
|
type_files = type ?
|
||||||
Dir[File.expand_path("../dist/resources/#{type}/**/*", __FILE__)] :
|
Dir[File.expand_path("../../dist/resources/#{type}/**/*", __FILE__)] : []
|
||||||
[]
|
|
||||||
base_files.concat(type_files)
|
base_files.concat(type_files)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -60,15 +59,15 @@ def mkchdir(dir)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pkg(filename)
|
def pkg(filename)
|
||||||
File.expand_path("../pkg/#{filename}", __FILE__)
|
File.expand_path("../../pkg/#{filename}", __FILE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
def project_root
|
def project_root
|
||||||
File.dirname(__FILE__)
|
File.expand_path("../..", __FILE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
def resource(name)
|
def resource(name)
|
||||||
File.expand_path("../dist/resources/#{name}", __FILE__)
|
File.expand_path("../../dist/resources/#{name}", __FILE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
def s3_connect
|
def s3_connect
|
||||||
|
|||||||
Reference in new issue
Block a user