Sha256: 39947ab5b76eff0912188b5eb84794955fdcdcacd2946306b423a3204868465b

Contents?: true

Size: 851 Bytes

Versions: 4

Compression:

Stored size: 851 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?

$:.unshift(File.expand_path('../../lib', __FILE__)) if $0 == __FILE__

print "\e[31m"
puts %q{
                 _   _                       _
  ___  __ _ _ __| |_| |__   __ _ _   _  __ _| | _____
 / _ \/ _` | '__| __| '_ \ / _` | | | |/ _` | |/ / _ \
|  __/ (_| | |  | |_| | | | (_| | |_| | (_| |   <  __/
 \___|\__,_|_|   \__|_| |_|\__, |\__,_|\__,_|_|\_\___|
                              |_|           }.
gsub(/^\n/, '') + "v#{File.read(File.expand_path('../../VERSION', __FILE__))}".rjust(10) + "\n\n"
print "\e[0m"

require 'earthquake'
Earthquake.start(options)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
earthquake-0.7.0 bin/earthquake
earthquake-0.6.12 bin/earthquake
earthquake-0.6.11 bin/earthquake
earthquake-0.6.10 bin/earthquake