Sha256: c347a7e3ee046ce4849c309a3bf3acd01241b51449024dfd9fc58016109f3b01

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

#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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ratch-0.1 lib/ratch/cli/ratch.rb