summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-07-25 18:11:35 -0700
committerMatt Wrock <matt@mattwrock.com>2016-07-25 18:11:35 -0700
commit035248f76343c13a13a15a0e262caf8eb877ed0d (patch)
tree4784abd04bac06bffa3b72e0d165b1e25d51aeae
parentff9d72e533a5a5e5afa53d4cf9a8feef3078925f (diff)
downloadchef-gem.tar.gz
copy built gems to package directorygem
-rw-r--r--omnibus/config/projects/chef.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
index 3d92d290a0..b4ac425ae5 100644
--- a/omnibus/config/projects/chef.rb
+++ b/omnibus/config/projects/chef.rb
@@ -56,6 +56,13 @@ dependency "preparation"
# or removal of a dependency doesn't dirty the entire project file
dependency "chef-complete"
+# Copy all the chef and chef-config gems to the package directory
+%w(chef chef-config).each do |gem_name|
+ Dir.glob("#{Config.source_dir}/#{gem_name}/*.gem").each do |gem|
+ copy_file(file, "#{Config.package_dir}/#{File.basename(file)}")
+ end
+end
+
package :rpm do
signing_passphrase ENV["OMNIBUS_RPM_SIGNING_PASSPHRASE"]
end