Sha256: af625986b7710f7daf77c06a71d7f202a097bda52da78e9d684d25277d267fd8

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

require 'rails/generators/base'
 
module Niftier
  module Generators
    class Base < Rails::Generators::Base #:nodoc:
      def self.source_root
        @_niftier_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'niftier', generator_name, 'templates'))
      end
 
      def self.banner
        "#{$0} niftier:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
niftier-generators-0.1.2 lib/generators/niftier.rb
niftier-generators-0.1.1 lib/generators/niftier.rb
niftier-generators-0.1.0 lib/generators/niftier.rb