Sha256: 34ff1ae66c35410e143f3acf66e9d989f2a35216edd4b8cda82d18cf3c557027

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path('../../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)

require 'doit'
require 'micro-optparse'
require 'globals'
require 'what'

options = Parser.new do |p|
   p.banner = "Usage: doit script... [options] # execute locally or remotely"
   p.version = "doit #{Globals::VERSION}"
   p.option :list, 'Lists available scripts'
   p.option :each, 'Lists each remote command (no execution)'
   p.option :remote, 'Remote host or comma separated hosts', default: '...', optional: true
   p.option :silent, 'Run silently; suppress output'
   p.option :verbose, 'Enable verbose output'
   p.option :noop, 'Suppress execution of commannds'
end.process!

Doit.start(options)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doit-0.3.2 bin/doit