summaryrefslogtreecommitdiff
path: root/lib/chef/knife/cookbook_site_share.rb
diff options
context:
space:
mode:
authorjmink <jmink@getchef.com>2014-06-27 11:12:24 -0400
committerjmink <jmink@getchef.com>2014-06-27 11:18:12 -0400
commitb34a52c3454e474ef4ee2eda1897a7548344b42c (patch)
tree4a285120a5057a35db74d7eac67a1ebcd2a26148 /lib/chef/knife/cookbook_site_share.rb
parenta1347e8aabf7f333f54778c44ad10e6edb9426cb (diff)
downloadchef-b34a52c3454e474ef4ee2eda1897a7548344b42c.tar.gz
Include the shell_out mixin in cookbook_site_share
Diffstat (limited to 'lib/chef/knife/cookbook_site_share.rb')
-rw-r--r--lib/chef/knife/cookbook_site_share.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index cf0d3b8eac..4dcce42d7f 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -23,6 +23,8 @@ class Chef
class Knife
class CookbookSiteShare < Knife
+ include Chef::Mixin::ShellOut
+
deps do
require 'chef/cookbook_loader'
require 'chef/cookbook_uploader'
@@ -57,7 +59,7 @@ class Chef
begin
Chef::Log.debug("Temp cookbook directory is #{tmp_cookbook_dir.inspect}")
ui.info("Making tarball #{cookbook_name}.tgz")
- Chef::Mixin::ShellOut::shell_out!("tar -czf #{cookbook_name}.tgz #{cookbook_name}", :cwd => tmp_cookbook_dir)
+ shell_out!("tar -czf #{cookbook_name}.tgz #{cookbook_name}", :cwd => tmp_cookbook_dir)
rescue => e
ui.error("Error making tarball #{cookbook_name}.tgz: #{e.message}. Increase log verbosity (-VV) for more information.")
Chef::Log.debug("\n#{e.backtrace.join("\n")}")