Method: Toaster::ChefUtil.run_chef
- Defined in:
- lib/toaster/chef/chef_util.rb
.run_chef(chef_solo_file, node_file, print_output = true) ⇒ Object
182 183 184 185 186 187 188 189 |
# File 'lib/toaster/chef/chef_util.rb', line 182 def self.run_chef(chef_solo_file, node_file, print_output=true) cmd = "chef-solo -c #{chef_solo_file} -j #{node_file} 2>&1 | grep -v 'FATAL: No cookbook found in'" if print_output system(cmd) else `#{cmd}` end end |