module Taketo::Commands::SSHOptions

Public Class Methods

new(server) click to toggle source
# File lib/taketo/commands/ssh_options.rb, line 9
def initialize(server)
  @server = server
end

Public Instance Methods

host() click to toggle source
# File lib/taketo/commands/ssh_options.rb, line 13
def host
  shellescape @server.host
end
identity_file() click to toggle source
# File lib/taketo/commands/ssh_options.rb, line 25
def identity_file
  %Q[-i #{shellescape @server.identity_file}] if @server.identity_file
end
port() click to toggle source
# File lib/taketo/commands/ssh_options.rb, line 17
def port
  %Q[-p #{@server.port}] if @server.port
end
username() click to toggle source
# File lib/taketo/commands/ssh_options.rb, line 21
def username
  %Q[#{shellescape @server.username}@] if @server.username
end