SSHKit::SimpleHostParser
@private
# File lib/sshkit/host.rb, line 156 def self.suitable?(host_string) host_string.match /[a-fA-F0-9:]+:\d+/ end
# File lib/sshkit/host.rb, line 164 def hostname @host_string.gsub!(/\[|\]/, '') @host_string.split(':')[0..-2].join(':') end
# File lib/sshkit/host.rb, line 160 def port @host_string.split(':').last.to_i end
[Validate]
Generated with the Darkfish Rdoc Generator 2.