Sha256: 4f71c8aaa0957be1703b6d1c0c1fe438a0de5755e012fda7a9c5f3d702c543fe

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 Bytes

Contents

module ServerTools
  class Bootstrap
    def initialize(hostname, options)
      @hostname = hostname
      @options = options
    end

    def command
      [
        "knife bootstrap #{hostname}",
        "--identity-file #{options[:identity_file]}",
        "--ssh-port #{options[:ssh_port]}",
        "--ssh-user #{options[:ssh_user]}",
        "--sudo",
        "--local-mode"
      ].join(' ')
    end

    private

    attr_reader :hostname, :options
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
server_tools-0.2.0 lib/server_tools/bootstrap.rb
server_tools-0.1.6 lib/server_tools/bootstrap.rb
server_tools-0.1.5 lib/server_tools/bootstrap.rb
server_tools-0.1.4 lib/server_tools/bootstrap.rb