lib/vagabond/uploader/knife.rb in vagabond-0.2.4 vs lib/vagabond/uploader/knife.rb in vagabond-0.2.6

- old
+ new

@@ -8,9 +8,12 @@ prepare unless args.include?(:no_prepare) com = "knife cookbook upload#{options[:knife_opts]} --all" if(options[:cookbook_paths]) com << " --cookbook-path #{Array(options[:cookbook_paths]).join(':')}" end + if(File.exists?(knife_config = File.join(store, '.chef/knife.rb'))) + com << " --config #{knife_config}" + end debug(com) cmd = Mixlib::ShellOut.new(com, :live_stream => options[:debug], :cwd => store )