Sha256: 6b8238e9945c3653ee5ca341b9a0c242a7d1cf048ec17a8ee47eafb098e2ed7d

Contents?: true

Size: 902 Bytes

Versions: 11

Compression:

Stored size: 902 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("--debug", "Run verbosely") do |v|
		options[:debug] = 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.30 bin/shaddox
shaddox-0.0.29 bin/shaddox
shaddox-0.0.28 bin/shaddox
shaddox-0.0.27 bin/shaddox
shaddox-0.0.26 bin/shaddox
shaddox-0.0.25 bin/shaddox
shaddox-0.0.24 bin/shaddox
shaddox-0.0.23 bin/shaddox
shaddox-0.0.22 bin/shaddox
shaddox-0.0.21 bin/shaddox
shaddox-0.0.20 bin/shaddox