Sha256: dbd98ba4fa03f54531688a170aedb7fd695752aba39c1c12bad524e409721046
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/base' module Importo module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __dir__) desc 'Creates a Importo initializer and copy locale files to your application.' def copy_initializer template 'importo.rb', 'config/initializers/importo.rb' end def copy_locale copy_file '../../../config/locales/en.yml', 'config/locales/importo.en.yml' copy_file '../../../config/locales/nl.yml', 'config/locales/importo.nl.yml' end def show_readme readme 'README' if behavior == :invoke end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
importo-2.0.5 | lib/generators/importo/install_generator.rb |
importo-2.0.4 | lib/generators/importo/install_generator.rb |