class SSHKit::SimpleHostParser
@private
Public Class Methods
new(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 96 def initialize(host_string) @host_string = host_string end
suitable?(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 92 def self.suitable?(host_string) !host_string.match(/:|@/) end
Public Instance Methods
attributes()
click to toggle source
# File lib/sshkit/host.rb, line 112 def attributes [username, hostname, port] end
hostname()
click to toggle source
# File lib/sshkit/host.rb, line 108 def hostname @host_string end
port()
click to toggle source
# File lib/sshkit/host.rb, line 104 def port end
username()
click to toggle source
# File lib/sshkit/host.rb, line 100 def username end