Class: Chake::ConfigManager::Chef
Constant Summary
collapse
- CONFIG =
ENV['CHAKE_CHEF_CONFIG'] || 'config.rb'
Instance Attribute Summary
#node
Class Method Summary
collapse
Instance Method Summary
collapse
all, #bootstrap_steps, get, inherited, init, #initialize, #name, #needs_upload?, #path, priority, short_name, #to_s
Class Method Details
.accept?(_node) ⇒ Boolean
19
20
21
|
# File 'lib/chake/config_manager/chef.rb', line 19
def self.accept?(_node)
true end
|
Instance Method Details
#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
|
#converge ⇒ Object
9
10
11
|
# File 'lib/chake/config_manager/chef.rb', line 9
def converge
node.run_as_root "sh -c 'rm -f #{node.path}/nodes/*.json && chef-solo -c #{node.path}/#{CONFIG} #{logging} -j #{json_config}'"
end
|