Class: Chef::Knife::HelperExec
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::HelperExec
- Defined in:
- lib/chef/knife/helper_exec.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/chef/knife/helper_exec.rb', line 24 def run commands = ::Knife::Helper::Commands.new( ::Knife::Helper::Config.new(config[:file]).data ) @name_args.each do |cmd| if config[:print_command] output commands.build(cmd) else commands.exec(cmd) end end end |