Sha256: 567fc117757e57d616edefa32db1bc5a9e451c3cdda1d8c87330763ef4fdab76
Contents?: true
Size: 552 Bytes
Versions: 9
Compression:
Stored size: 552 Bytes
Contents
require 'rails/generators/base' module Transponder module Generators class Base < Rails::Generators::Base 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
9 entries across 9 versions & 1 rubygems