Sha256: e8fcaa1012d0f109273639bdf597fc037a813993fe6884ec6ea2c193e9296c70

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

require 'rails/generators/base'
require 'demo_mode/engine'

module DemoMode
  class InstallGenerator < Rails::Generators::Base
    desc 'Copies initial demo mode files to your application.'
    source_root File.expand_path('../templates', __dir__)

    def install
      template 'initializer.rb', 'config/initializers/demo_mode.rb'
      template 'sample_persona.rb', 'config/personas/sample_persona.rb'
      rake 'demo_mode:install:migrations'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
demo_mode-1.2.0 lib/generators/demo_mode/install_generator.rb
demo_mode-1.1.1 lib/generators/demo_mode/install_generator.rb
demo_mode-1.1.0 lib/generators/demo_mode/install_generator.rb
demo_mode-1.0.3 lib/generators/demo_mode/install_generator.rb
demo_mode-1.0.2 lib/generators/demo_mode/install_generator.rb