class SSHKit::HostWithUsernameParser
@private
Public Class Methods
suitable?(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 182 def self.suitable?(host_string) host_string.match(/@/) && !host_string.match(/\:/) end
Public Instance Methods
hostname()
click to toggle source
# File lib/sshkit/host.rb, line 188 def hostname @host_string.split('@').last end
username()
click to toggle source
# File lib/sshkit/host.rb, line 185 def username @host_string.split('@').first end