test/acceptance/spec/chef_provisioning_spec_helper.rb
# Simplify chef-provisioning client run.
# @param run_list [String] run list to execute
# @param local_mode [Boolean]
Simplify chef-provisioning client run.
Simplify chef - provisioning client run .
def metal_run(run_list, local_mode = true)
  chef_client = Mixlib::ShellOut.new("bundle exec chef-client #{'-z' if local_mode} -o #{run_list} --force-formatter", shellout_options)
  chef_client.run_command
  return chef_client
end
def metal_run ( run_list , local_mode = true ) chef_client = Mixlib :: ShellOut . new ( "bundle exec chef-client #{'-z' if local_mode} -o #{run_list} --force-formatter" , shellout_options ) chef_client . run_command return chef_client end
Simplify chef-provisioning client run.
Simplify chef - provisioning client run .
run_list
run list to execute
run list to execute
local_mode
<not_specific>
<not_specific>
None