Sha256: 0f3d76d39448d200daebde2e20306f378c8824e09b26a6467a3b7285a079dfaa
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
#! /usr/bin/env ruby if ARGV[0] == '-s' require 'ratch/manager' manager = Ratch::Manager.new file = ARGV[1] if file # run tool if tool = manager.tool?(file) require 'ratch/dsl' load(tool) else puts "no tool -- #{file}" end else puts manager.toolset.join("\n") end elsif ARGV.empty? # TODO read stdin for ratch script else require 'ratch/dsl' load($0 = ARGV.shift) end # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.4.0 | bin/ratch |