Class: Phase::Commands::SSH
- Inherits:
-
Command
- Object
- Command
- Phase::Commands::SSH
- Defined in:
- lib/phase/cli/ssh.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
writeonly
Sets the attribute instance.
-
#username ⇒ Object
writeonly
Sets the attribute username.
Instance Method Summary collapse
Instance Attribute Details
#instance=(value) ⇒ Object
Sets the attribute instance
21 22 23 |
# File 'lib/phase/cli/ssh.rb', line 21 def instance=(value) @instance = value end |
#username=(value) ⇒ Object
Sets the attribute username
21 22 23 |
# File 'lib/phase/cli/ssh.rb', line 21 def username=(value) @username = value end |
Instance Method Details
#run ⇒ Object
23 24 25 26 27 |
# File 'lib/phase/cli/ssh.rb', line 23 def run parse_connection_string log "connecting to instance #{ instance.id }..." exec "#{ .conn } #{ username }@#{ instance.dns_name }" end |