Sha256: 202b293e9544e4c9a02d3a1134f7d58943379692605e9e8db6e62307fc478742
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
require 'taketo/config_visitor' require 'taketo/printer' module Taketo class SSHConfigGeneratorVisitor < ConfigVisitor include Printer visit Server do |server| put_server(server, server.global_alias) unless server.global_alias.to_s.empty? put_server(server, server.host) end def put_server(server, host) put "Host #{host}" put "Hostname #{server.host}" put_optional "Port", server.port put_optional "User", server.username put_optional "IdentityFile", server.identity_file put end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taketo-0.3.1 | lib/taketo/ssh_config_generator_visitor.rb |
taketo-0.3.0 | lib/taketo/ssh_config_generator_visitor.rb |
taketo-0.2.0 | lib/taketo/ssh_config_generator_visitor.rb |