class Admiral::Layers::AdmiralTestChefInstall
Public Class Methods
new(config, ipaddress)
click to toggle source
Calls superclass method
Admiral::LayerBase::new
# File lib/admiral/layers/admiral.test.chef.install.rb, line 9 def initialize(config, ipaddress) description = "Get and install chef" super(description, config, ipaddress) end
Public Instance Methods
do_action()
click to toggle source
# File lib/admiral/layers/admiral.test.chef.install.rb, line 15 def do_action() cmd = 'wget --no-check-certificate https://www.chef.io/chef/install.sh -O /tmp/install.sh && /bin/bash /tmp/install.sh' rc = run_ssh_command(cmd, :allow_proxy => true) return (rc == 0) end