Sha256: 953943bca08513d74812cb660a7008e4c6d06a393bf1ccd3db7c7b00b2089d05
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
#!/usr/bin/env ruby require 'slop' argv = ARGV.dup opts = Slop.parse! argv, :help => true do banner "Usage: earthquake [options] [directory]" on :d, :debug, 'Enable debug mode' end options = opts.to_hash(true) options.delete(:help) options[:dir] = argv.shift unless argv.empty? require 'pathname' eq_dir = Pathname.new(File.expand_path('../..', __FILE__)).realpath $:.unshift eq_dir.join('lib') if $0 == __FILE__ print "\e[31m" puts %q{ _ _ _ ___ __ _ _ __| |_| |__ __ _ _ _ __ _| | _____ / _ \/ _` | '__| __| '_ \ / _` | | | |/ _` | |/ / _ \ | __/ (_| | | | |_| | | | (_| | |_| | (_| | < __/ \___|\__,_|_| \__|_| |_|\__, |\__,_|\__,_|_|\_\___| |_| }. gsub(/^\n/, '') + "v#{eq_dir.join('VERSION').read}".rjust(10) + "\n\n" print "\e[0m" require 'earthquake' Earthquake.start(options)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earthquake-0.7.1 | bin/earthquake |