Sha256: c182fa8872ea867e4b1926396bf162cb70036f07dccee5eb54f4144addc0f77e

Contents?: true

Size: 414 Bytes

Versions: 51

Compression:

Stored size: 414 Bytes

Contents

require 'rails/generators'

module ForestLiana
  class InstallGenerator < Rails::Generators::Base
    desc 'Forest Rails Liana installation generator'

    def install
      jwt_signing_key = ask('What\'s your project secret key?')
      route("mount ForestLiana::Engine => '/forest'")
      initializer 'forest_liana.rb' do
        "ForestLiana.jwt_signing_key = '#{jwt_signing_key}'"
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
forest_liana-1.2.1 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.35 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.34 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.33 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.32 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.31 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.30 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.29 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.28 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.27 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.26 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.25 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.23 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.22 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.20 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.19 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.18 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.17 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.16 lib/generators/forest_liana/install_generator.rb
forest_liana-1.1.15 lib/generators/forest_liana/install_generator.rb