Sha256: 2cd93589de1fe05fd81191867fc516124fb7cbf51aca9783e37797873fdc13f3

Contents?: true

Size: 917 Bytes

Versions: 11

Compression:

Stored size: 917 Bytes

Contents

#!/usr/bin/env ruby

require 'shaddox'
require 'optparse'

@doxfile = './Doxfile'
options = {
	:verbose => true
}

OptionParser.new do |opts|

	opts.banner = "Usage: shaddox [task] [target] [options]"

	opts.on("-v", "--[no]-verbose", "Run verbosely") do |v|
		options[:verbose] = v
	end

	opts.on("--force", "Override lock on target") do |b|
		options[:force] = b
	end

	opts.on("--keep-tmp-dir", "Don't remove the tmpdir after deployment") do |b|
		options[:keep_tmp_dir] = b
	end

	opts.on("--tmpdir PATH", "Specify the tmp directory to use (default '/tmp/shaddox')") do |dir|
		options[:tmpdir] = dir
	end

	opts.on('-f PATH', '--doxfile', "Specify doxfile") do |f|
		@doxfile = f
	end

	opts.on_tail("-h", "--help", "Show help text") do
		puts opts
		exit
	end

end.parse!

task = ARGV[0]
target = ARGV[1] || 'localhost'

config = Shaddox::Config.new(@doxfile)
config.invoke(task.to_sym, target.to_sym, options)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shaddox-0.0.19 bin/shaddox
shaddox-0.0.18 bin/shaddox
shaddox-0.0.17 bin/shaddox
shaddox-0.0.16 bin/shaddox
shaddox-0.0.15 bin/shaddox
shaddox-0.0.14 bin/shaddox
shaddox-0.0.13 bin/shaddox
shaddox-0.0.12 bin/shaddox
shaddox-0.0.11 bin/shaddox
shaddox-0.0.10 bin/shaddox
shaddox-0.0.9 bin/shaddox