Sha256: 7c1e4012a9c25827c4e4c7deabcdc247753a7cdef515fd1c4fc948367469443e

Contents?: true

Size: 563 Bytes

Versions: 9

Compression:

Stored size: 563 Bytes

Contents

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

      desc "Creates an initializer for Motr and copy locale files to your application."

      def copy_initializer
        template "motr.rb", "config/initializers/motr.rb"
      end

      def copy_locale
        copy_file "../../../config/locales/en.yml", "config/locales/motr.en.yml"
      end

      def show_post_install_notes
        readme "post_install" if behavior == :invoke
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
motr-0.1.1 lib/generators/motr/install_generator.rb
motr-0.1.0 lib/generators/motr/install_generator.rb
motr-0.0.9 lib/generators/motr/install_generator.rb
motr-0.0.8 lib/generators/motr/install_generator.rb
motr-0.0.7 lib/generators/motr/install_generator.rb
motr-0.0.6 lib/generators/motr/install_generator.rb
motr-0.0.5 lib/generators/motr/install_generator.rb
motr-0.0.4 lib/generator/motr/install_generator.rb
motr-0.0.3 lib/generator/motr/install_generator.rb