class SSHKit::SimpleHostParser
@private
Public Class Methods
new(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 107 def initialize(host_string) @host_string = host_string end
suitable?(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 103 def self.suitable?(host_string) !host_string.match(/:|@/) end
Public Instance Methods
attributes()
click to toggle source
# File lib/sshkit/host.rb, line 123 def attributes [username, hostname, port] end
hostname()
click to toggle source
# File lib/sshkit/host.rb, line 119 def hostname @host_string end
port()
click to toggle source
# File lib/sshkit/host.rb, line 115 def port end
username()
click to toggle source
# File lib/sshkit/host.rb, line 111 def username end