Class: Chake::ConfigManager::Shell
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
16
17
18
|
# File 'lib/chake/config_manager/shell.rb', line 16
def self.accept?(node)
node.data.key?('shell')
end
|
Instance Method Details
#apply(config) ⇒ Object
12
13
14
|
# File 'lib/chake/config_manager/shell.rb', line 12
def apply(config)
node.run_as_root sh(config)
end
|
#converge ⇒ Object
7
8
9
10
|
# File 'lib/chake/config_manager/shell.rb', line 7
def converge
commands = node.data['shell'].join(' && ')
node.run_as_root sh(commands)
end
|