class Provisioner::Command::Bootstrap
Public Instance Methods
use_sudo?()
click to toggle source
# File lib/provisioner/command/bootstrap.rb, line 5 def use_sudo? options[:sudo] end
Private Instance Methods
reset_chef?()
click to toggle source
# File lib/provisioner/command/bootstrap.rb, line 19 def reset_chef? options[:reset] end
shell_commands_for(number)
click to toggle source
# File lib/provisioner/command/bootstrap.rb, line 11 def shell_commands_for(number) host = HostCommand.new(host_name(number), self) commands = [] commands << host.reset_command if reset_chef? commands << host.bootstrap_command end