Sha256: 9562296dfafb57d1273dcc0d339f84356889a432caaffadb9b8f2303b43c6e2e

Contents?: true

Size: 389 Bytes

Versions: 13

Compression:

Stored size: 389 Bytes

Contents

class JoyDataTransformerGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)
  argument :transformer_name, type: :string

  def generate_transformer
    create_transformer
  end

  private
  def create_transformer
    template 'joy_transformer_template.template', "app/services/ussd/transformers/#{transformer_name.underscore}_transformer.rb"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
joy_ussd_engine-0.1.14 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.13 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.12 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.11 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.10 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.9 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.8 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.7 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.6 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.5 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.3 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.2 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb
joy_ussd_engine-0.1.0 lib/generators/joy_data_transformer/joy_data_transformer_generator.rb