#require 'shellwords' require 'rbconfig' # replace with facets/rbsystem in future ? require 'ratch/batch' module Ratch class RatchCommand # Quick start. def self.start(file) new.run(file) end # Run task. def run(file) if file BatchFile.new(file).call else help end end # Dispaly help. def help help = <<-END USAGE: ratch [options] OPTIONS: --dryrun --nohram --trace --debug END puts help.gsub(/^\s+/, '') end end end