Sha256: 1f01fea1e2f4d78061a09f86e095dba85fc7e1ef4e96dba57a3b38ce5933da38
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
require 'rails/generators' require 'rails/generators/named_base' module Transponder module Generators class Base < Rails::Generators::NamedBase def self.source_root @_transponder_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'transponder', generator_name, 'templates')) end def self.banner "rails generate transponder:#{generator_name} #{self.arguments.map{ |a| a.usage}.join(' ')} [options]" end private def print_usage self.class.help(Thor::Base.shell.new) exit end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
transponder-0.9.0 | lib/generators/transponder.rb |
transponder-0.8.2 | lib/generators/transponder.rb |