Sha256: b6c2f51369b11025a7bfac6382b803bb880346d9575abe77b57c0704d0c40b87
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
#! /usr/bin/ruby1.8 #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] <taskfile> OPTIONS: --dryrun --nohram --trace --debug END puts help.gsub(/^\s+/, '') end end end #load($0 = ARGV.shift) Ratch::RatchCommand.start(ARGV.shift)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.2.1 | bin/ratch |
ratch-0.2.2 | bin/ratch |