module FileReplicator::ReplicatorHelper

Constants

READ_BUFFER

Attributes

checksum[R]
colour[R]
options[R]

Protected Instance Methods

chksum?() click to toggle source
# File lib/file_replicator/replicator_helper.rb, line 25
def chksum?
  !checksum.nil? && !quiet?
end
prepare(file_path) click to toggle source
# File lib/file_replicator/replicator_helper.rb, line 11
def prepare(file_path)
  FileUtils.mkdir_p File.dirname(file_path)
  FileUtils.rm_f file_path
  FileUtils.touch file_path
end
progress?() click to toggle source
# File lib/file_replicator/replicator_helper.rb, line 21
def progress?
  !options.no_progress? && !quiet?
end
quiet?() click to toggle source
# File lib/file_replicator/replicator_helper.rb, line 17
def quiet?
  options.quiet?
end