Sha256: 9d5d4eefa1ac9cf4fdf7e182c208c660f30c2431bed1a47b97e0bfd6ea87d541
Contents?: true
Size: 590 Bytes
Versions: 5
Compression:
Stored size: 590 Bytes
Contents
#!/usr/bin/env ruby begin require 'straptible' rescue require 'rubygems' require 'straptible' end def usage(dest = $stdout) dest.puts 'Usage: straptible <flavor> <path> [options...]' end flavor = ARGV.first case flavor when 'api' require File.join('straptible', 'rails', 'generators', 'api') ARGV.shift Straptible::Rails::Generators::Api.start when 'gem' require File.join('straptible', 'gem', 'generators', 'base') Straptible::Gem::Generators::Base.start when nil usage($stderr) exit 1 else $stderr.puts "Unknown flavor: #{flavor}" usage($stderr) exit 1 end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
straptible-0.2.4 | bin/straptible |
straptible-0.2.3 | bin/straptible |
straptible-0.2.2 | bin/straptible |
straptible-0.2.1 | bin/straptible |
straptible-0.2.0 | bin/straptible |