Class: Phase::CLI::SSH
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
writeonly
Sets the attribute instance.
-
#username ⇒ Object
writeonly
Sets the attribute username.
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Methods included from Util::Console
Constructor Details
This class inherits a constructor from Phase::CLI::Command
Instance Attribute Details
#instance=(value) ⇒ Object
Sets the attribute instance
20 21 22 |
# File 'lib/phase/cli/ssh.rb', line 20 def instance=(value) @instance = value end |
#username=(value) ⇒ Object
Sets the attribute username
20 21 22 |
# File 'lib/phase/cli/ssh.rb', line 20 def username=(value) @username = value end |
Instance Method Details
#run ⇒ Object
22 23 24 25 26 |
# File 'lib/phase/cli/ssh.rb', line 22 def run parse_connection_string log "connecting to instance #{ instance.resource.id }..." exec "#{ options.conn } #{ username }@#{ instance.resource.dns_name }" end |