Class: BuildMaster::PscpDriver
- Inherits:
-
Object
- Object
- BuildMaster::PscpDriver
- Defined in:
- lib/buildmaster/project/pscp_driver.rb
Instance Method Summary collapse
- #copy(source, target) ⇒ Object
-
#initialize(server_url, cotta = Cotta.new()) ⇒ PscpDriver
constructor
A new instance of PscpDriver.
Constructor Details
#initialize(server_url, cotta = Cotta.new()) ⇒ PscpDriver
Returns a new instance of PscpDriver.
3 4 5 6 |
# File 'lib/buildmaster/project/pscp_driver.rb', line 3 def initialize(server_url, cotta = Cotta.new()) @server_url = server_url @cotta = cotta end |
Instance Method Details
#copy(source, target) ⇒ Object
8 9 10 |
# File 'lib/buildmaster/project/pscp_driver.rb', line 8 def copy(source, target) @cotta.shell("pscp -r #{source} #{@server_url}:#{target}") end |