class SSHKit::SimpleHostParser

@private

Public Class Methods

new(host_string) click to toggle source
# File lib/sshkit/host.rb, line 105
def initialize(host_string)
  @host_string = host_string
end
suitable?(host_string) click to toggle source
# File lib/sshkit/host.rb, line 101
def self.suitable?(host_string)
  !host_string.match(/:|@/)
end

Public Instance Methods

attributes() click to toggle source
# File lib/sshkit/host.rb, line 121
def attributes
  [username, hostname, port]
end
hostname() click to toggle source
# File lib/sshkit/host.rb, line 117
def hostname
  @host_string
end
port() click to toggle source
# File lib/sshkit/host.rb, line 113
def port

end
username() click to toggle source
# File lib/sshkit/host.rb, line 109
def username

end