Class: ServerTools::Provision
- Inherits:
-
Object
- Object
- ServerTools::Provision
- Includes:
- SSH
- Defined in:
- lib/server_tools/provision.rb
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(hostname, options) ⇒ Provision
constructor
A new instance of Provision.
Methods included from SSH
Constructor Details
#initialize(hostname, options) ⇒ Provision
Returns a new instance of Provision.
6 7 8 9 |
# File 'lib/server_tools/provision.rb', line 6 def initialize(hostname, ) @hostname = hostname @options = end |
Instance Method Details
#command ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/server_tools/provision.rb', line 11 def command [ "ssh #{hostname}", "-t -t", "#{ssh_opts()}", "sudo /usr/bin/chef-client #{[:chef_client_flags]}" ].join(' ') end |