Sha256: 707617a18b460046481daa0a28f6bb5e7c529107362e95a292e6654fa859c699

Contents?: true

Size: 598 Bytes

Versions: 7

Compression:

Stored size: 598 Bytes

Contents

#!/usr/bin/env ruby
require 'clearwater/roda'

# If this grows beyond this simple app generator, may want to use something like
# Thor. But for now, this is all we really need.

command, app_name, _ = ARGV

usage = <<-USAGE
Usage:
  $ clearwater-roda new APP_NAME'
    # Generates a Clearwater/Roda app with the specified name.
  $ clearwater-roda -v'
    # Display version and exit
  $ clearwater-roda -h'
    # Display usage info
USAGE

case command
when 'new'
  Clearwater::Roda.build_app app_name
when '-v'
  puts Clearwater::Roda::VERSION
when '-h'
  puts usage
else
  warn usage
  exit 1
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
clearwater-roda-0.3.0 exe/clearwater-roda
clearwater-roda-0.2.4 exe/clearwater-roda
clearwater-roda-0.2.3 exe/clearwater-roda
clearwater-roda-0.2.2 exe/clearwater-roda
clearwater-roda-0.2.1 exe/clearwater-roda
clearwater-roda-0.2.0 exe/clearwater-roda
clearwater-roda-0.1.0 exe/clearwater-roda