Class: Rsync::Command
- Inherits:
-
Object
- Object
- Rsync::Command
- Defined in:
- lib/rsync/command.rb
Overview
An rsync command to be run
Instance Method Summary collapse
-
#initialize(args) ⇒ Command
constructor
A new instance of Command.
-
#run ⇒ Result
Runs the rsync job and returns the results.
Constructor Details
#initialize(args) ⇒ Command
4 5 6 |
# File 'lib/rsync/command.rb', line 4 def initialize(args) @args = args.join(" ") end |
Instance Method Details
#run ⇒ Result
Runs the rsync job and returns the results
11 12 13 |
# File 'lib/rsync/command.rb', line 11 def run run_command("rsync --itemize-changes #{@args}") end |