Method: Chake::ConfigManager::Chef#apply

Defined in:
lib/chake/config_manager/chef.rb

#apply(config) ⇒ Object



13
14
15
# File 'lib/chake/config_manager/chef.rb', line 13

def apply(config)
  node.run_as_root "sh -c 'rm -f #{node.path}/nodes/*.json && chef-solo -c #{node.path}/#{CONFIG} #{logging} -j #{json_config} --override-runlist recipe[#{config}]'"
end