Class: ChecksummerThor

Inherits:
Thor
  • Object
show all
Defined in:
bin/checksummer2

Instance Method Summary collapse

Instance Method Details

#checksumObject



11
12
13
14
15
16
# File 'bin/checksummer2', line 11

def checksum
  if !File.exists?(options.dst)
    puts "ERROR: #{options.dst} does not exist!"
  end
  Checksummer.new(options.dst, :replace => options[:replace], :sleep => options.sleep).checksum_stream($stdin.readlines)
end