class Robocopy::Configuration
Attributes
destination[RW]
exclude_dirs[RW]
exclude_files[RW]
files[RW]
log[RW]
source[RW]
Public Class Methods
new()
click to toggle source
# File lib/tunny/robocopy.rb, line 17 def initialize @command = "robocopy" end
Public Instance Methods
args()
click to toggle source
# File lib/tunny/robocopy.rb, line 21 def args p = [] p << @source.quote p << @destination.quote p << (@files.join " ") if @files p << "/XF #{@exclude_files.join " "}" if @exclude_files p << "/XD #{@exclude_dirs.join " "}" if @exclude_dirs p << "/MIR" if @mirror p << "/TEE" if @tee p << "/LOG:#{@log}" if @log p << "/L" if @dryrun p << @parameters if @parameters p end
dryrun()
click to toggle source
# File lib/tunny/robocopy.rb, line 44 def dryrun @dryrun = true end
mirror()
click to toggle source
# File lib/tunny/robocopy.rb, line 36 def mirror @mirror = true end
tee()
click to toggle source
# File lib/tunny/robocopy.rb, line 40 def tee @tee = true end