class Taketo::Commands::SSHCommand

Public Class Methods

new(server, options = {}) click to toggle source
# File lib/taketo/commands/ssh_command.rb, line 7
def initialize(server, options = {})
  @server = server
end

Public Instance Methods

program() click to toggle source
# File lib/taketo/commands/ssh_command.rb, line 15
def program
  "ssh -t"
end
render(rendered_command) click to toggle source
# File lib/taketo/commands/ssh_command.rb, line 11
def render(rendered_command)
  %Q[#{program} #{port} #{identity_file} #{username}#{host} "#{rendered_command}"].squeeze(" ")
end