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
Class Method Details
.sync(connection_info, options, destination) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/deep_test/distributed/rsync.rb', line 4 def self.sync(connection_info, , destination) command = Args.new(connection_info, ).command(destination) DeepTest.logger.debug("rsycing: #{command}") output = `#{command}` raise "RSync Failed!!\nCommand failed: #{command}\nWith output:\nBEGIN#{'=' * 80}\n#{output}\nEND#{'=' * 82}" unless $?.success? output end |