Sha256: fa4dfdd33d041b12e32c35c16f14bfe918145f16061e4f403dc0fcd8757690b3

Contents?: true

Size: 333 Bytes

Versions: 13

Compression:

Stored size: 333 Bytes

Contents

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

  def generate_menu
    create_menu
  end

  private
  def create_menu
    template 'joy_route_menu_template.template', "app/services/ussd/menus/#{menu_name.underscore}_menu.rb"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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