class ServerTools::Provision

Attributes

hostname[R]
options[R]

Public Class Methods

new(hostname, options) click to toggle source
# File lib/server_tools/provision.rb, line 6
def initialize(hostname, options)
  @hostname = hostname
  @options = options
end

Public Instance Methods

command() click to toggle source
# File lib/server_tools/provision.rb, line 11
def command
  [
    "ssh #{hostname}",
    "-t -t",
    "#{ssh_opts(options)}",
    "sudo /usr/bin/chef-client #{options[:chef_client_flags]}"
  ].join(' ')
end