Sha256: 5afc5cd9a5c1add2eee3a15c1a4d0dd052bee15abe18c10330de73c4d5818753
Contents?: true
Size: 737 Bytes
Versions: 3
Compression:
Stored size: 737 Bytes
Contents
#!/usr/bin/env ruby %w[rubygems thor].each { |gem| require gem } require File.dirname(__FILE__) + "/../lib/padrino-gen" generator_mappings = SupportLite::OrderedHash.new generator_mappings[:app] = Padrino::Generators::Skeleton generator_mappings[:model] = Padrino::Generators::Model generator_mappings[:controller] = Padrino::Generators::Controller generator_mappings[:mailer] = Padrino::Generators::Mailer generator_kind = ARGV.delete_at(0).to_s.downcase.to_sym if ARGV[0].present? generator_class = generator_mappings[generator_kind] arguments = ARGV.any? ? ARGV : ['-h'] if generator_class generator_class.start(arguments) else puts "Please specify generator to use (#{generator_mappings.keys.join(", ")})" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.2.0 | bin/padrino-gen |
padrino-gen-0.1.5 | bin/padrino-gen |
padrino-gen-0.1.4 | bin/padrino-gen |