Sha256: e95a357505fc313b30bf4f7b7957ddcb5f75501bba67d6c67c10e81398da3772

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

module Banken
  module Generators
    class LoyaltyGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      def create_loyalty
        template 'loyalty.rb', File.join('app/loyalties', class_path, "#{file_name}_loyalty.rb")
      end

      hook_for :test_framework
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
banken-1.0.3 lib/generators/banken/loyalty/loyalty_generator.rb
banken-1.0.2 lib/generators/banken/loyalty/loyalty_generator.rb
banken-1.0.1 lib/generators/banken/loyalty/loyalty_generator.rb
banken-1.0.0 lib/generators/banken/loyalty/loyalty_generator.rb
banken-0.1.1 lib/generators/banken/loyalty/loyalty_generator.rb