Sha256: d586816dd3abf2221c332553728a0f6337775cde8d1b808f5c7ae9c4083ee6fc
Contents?: true
Size: 443 Bytes
Versions: 6
Compression:
Stored size: 443 Bytes
Contents
require 'server_tools/support/ssh' module ServerTools class Provision include SSH def initialize(hostname, options) @hostname = hostname @options = options end def command [ "ssh #{hostname}", "-t -t", "#{ssh_opts(options)}", "sudo /usr/bin/chef-client -o'#{options[:roles].join(',')}'" ].join(' ') end private attr_reader :hostname, :options end end
Version data entries
6 entries across 6 versions & 1 rubygems