Sha256: 71898284c2d70b516ed97b4d6e622ce4c8f695f5d57fe0dc323098f4a2e83891

Contents?: true

Size: 772 Bytes

Versions: 3

Compression:

Stored size: 772 Bytes

Contents

#! /usr/bin/env ruby

lib = File.expand_path('../lib/', __dir__)
# $:.unshift lib unless $:.include?(lib)
$LOAD_PATH.unshift lib unless $LOAD_PATH.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

3 entries across 3 versions & 1 rubygems

Version Path
doit-1.0.2 bin/doit
doit-1.0.1 bin/doit
doit-0.3.9 bin/doit