Class: DeepTest::Distributed::RSync
- Inherits:
-
Object
- Object
- DeepTest::Distributed::RSync
- Defined in:
- lib/deep_test/distributed/rsync.rb
Defined Under Namespace
Classes: Args
Class Method Summary collapse
- .push(address, sync_options, destination) ⇒ Object
- .sync(operation, address, sync_options, destination) ⇒ Object
Class Method Details
.push(address, sync_options, destination) ⇒ Object
4 5 6 |
# File 'lib/deep_test/distributed/rsync.rb', line 4 def self.push(address, , destination) sync(:push, address, , destination) end |
.sync(operation, address, sync_options, destination) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/deep_test/distributed/rsync.rb', line 8 def self.sync(operation, address, , destination) command = Args.new(address, ).send("#{operation}_command", destination) DeepTest.logger.debug { "rsycing: #{command}" } successful = system command raise "RSync Failed!!" unless successful end |