#! /usr/bin/ruby1.8 #require 'shellwords' require 'rbconfig' # replace with facets/rbsystem in future ? #require 'ratch/batchfile' 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 load($0 = ARGV.shift) #Ratch::RatchCommand.start(ARGV.shift)