Sha256: 14f32f20df4ce34ad0757a55ba716fb77113e518c0b5b88ea7bec666fbdfa06f

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

require 'rails/generators/base'
require 'securerandom'

module ExceptionallyBeautiful
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      def copy_initializer
        template 'exceptionally_beautiful.rb', 'config/initializers/exceptionally_beautiful.rb'
      end

      def copy_locale
        copy_file '../../../config/locales/en.yml', 'config/locales/exceptionally_beautiful.en.yml'
      end

      def add_exceptionally_beautiful_route
        route 'exceptionally_beautiful_routes'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
exceptionally_beautiful-0.1.5 lib/generators/exceptionally_beautiful/install_generator.rb
exceptionally_beautiful-0.1.4 lib/generators/exceptionally_beautiful/install_generator.rb
exceptionally_beautiful-0.1.3 lib/generators/exceptionally_beautiful/install_generator.rb
exceptionally_beautiful-0.1.2 lib/generators/exceptionally_beautiful/install_generator.rb
exceptionally_beautiful-0.1.1 lib/generators/exceptionally_beautiful/install_generator.rb
exceptionally_beautiful-0.1.0 lib/generators/exceptionally_beautiful/install_generator.rb