Class: Pot::Transports::Ssh
- Inherits:
-
Object
- Object
- Pot::Transports::Ssh
- Defined in:
- lib/pot/transports/ssh.rb
Instance Attribute Summary collapse
-
#instance ⇒ Object
readonly
Returns the value of attribute instance.
Instance Method Summary collapse
- #execute(command) ⇒ Object
-
#initialize(instance) ⇒ Ssh
constructor
:nodoc:.
- #transfer(source, destination, recursive = true) ⇒ Object
Constructor Details
Instance Attribute Details
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
8 9 10 |
# File 'lib/pot/transports/ssh.rb', line 8 def instance @instance end |
Instance Method Details
#execute(command) ⇒ Object
14 15 16 |
# File 'lib/pot/transports/ssh.rb', line 14 def execute(command) execute_on_connection!(command) end |
#transfer(source, destination, recursive = true) ⇒ Object
18 19 20 |
# File 'lib/pot/transports/ssh.rb', line 18 def transfer(source, destination, recursive = true) transfer_on_connection!(source, destination, recursive) end |