Sha256: 2d276f278786624d3c5b4ca6170e0c6ff2ff8a296f6762005ae98c9788f60116
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
#!/usr/bin/env ruby %w[rubygems activesupport thor].each { |gem| require gem } require File.dirname(__FILE__) + "/../lib/padrino-gen" generator_mappings = ActiveSupport::OrderedHash.new generator_mappings[:app] = Padrino::Generators::Skeleton generator_mappings[:controller] = Padrino::Generators::Controller 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.1.2 | bin/padrino-gen |