Class: Rsync::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/rsync/command.rb

Overview

An rsync command to be run

Instance Method Summary collapse

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

#runResult

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