class SSHKit::HostWithUsernameParser
@private
Public Class Methods
suitable?(host_string)
click to toggle source
# File lib/sshkit/host.rb, line 175 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 181 def hostname @host_string.split('@').last end
username()
click to toggle source
# File lib/sshkit/host.rb, line 178 def username @host_string.split('@').first end