Sha256: 7189c61ad712c66866b63a1e88403601cb6d207c3677dadbe8885ca64b409afd
Contents?: true
Size: 882 Bytes
Versions: 7
Compression:
Stored size: 882 Bytes
Contents
if ARGV.empty? ARGV << '--help' end HELP_TEXT = <<-EOT Usage: rid COMMAND [ARGS] The most common rid commands are: generate Generate new code (short-cut alias: "g") push Push application code to Couchdb pull Pull latest application code from Couchdb routes List application urls In addition to those, there are: destroy Undo code generated with "generate" All commands can be run with -h for more information. EOT case ARGV.shift when 'g', 'generate' require 'rid/commands/generate' when 'destroy' require 'rid/commands/destroy' when 'push' require 'rid/commands/push' when 'pull' require 'rid/commands/pull' when 'routes' require 'rid/commands/routes' when '--help', '-h' puts HELP_TEXT when '--version', '-v' require 'rid/version' puts "Rid #{Rid::VERSION}" else puts "Error: Command not recognized" puts HELP_TEXT end
Version data entries
7 entries across 7 versions & 1 rubygems