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

Version Path
transponder-0.1.5 lib/generators/transponder.rb
transponder-0.1.4 lib/generators/transponder.rb
transponder-0.1.3 lib/generators/transponder.rb
transponder-0.1.2 lib/generators/transponder.rb
transponder-0.1.1 lib/generators/transponder.rb
transponder-0.1.0 lib/generators/transponder.rb
transponder-0.0.8 lib/generators/transponder.rb
transponder-0.0.7 lib/generators/transponder.rb
transponder-0.0.6 lib/generators/transponder.rb