Sha256: 02ca910f53c340eb6058698f6adfb3ed7d6628a8008f891bacf9712d364ae5da
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' $LOAD_PATH.push File.expand_path('../../lib', __FILE__) require 'heartcheck' optparse = OptionParser.new do |opts| opts.banner = "Usage: heartcheck (rails|padrino|sinatra)\n\nYou can use flags as such:" opts.on('-h', '--help', 'Display this screen') do puts opts exit end if ARGV.size != 1 || !%w(rails sinatra padrino).include?(ARGV[0]) puts opts exit end end begin optparse.parse! rescue OptionParser::InvalidOption => e puts e exit end Heartcheck::Generator.new(ARGV).invoke_all
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heartcheck-1.0.0 | bin/heartcheck |