Sha256: 7c2a3e6b0cf050c50448e9ae200bd1cb7ae450edcf4195e91ea5f30643fc1a63
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 Bytes
Contents
require 'rails/generators/base' module Meta2 module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Creates a Meta2 initializer and copy locale files to your application." class_option :orm def copy_initializer target_file_path = 'config/initializers/meta2.rb' template target_file_path, target_file_path end def copy_locale target_file_path = 'config/locales/meta2.ja.yml' copy_file target_file_path, target_file_path end def show_readme readme "README" if behavior == :invoke end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meta2-0.0.3 | lib/generators/meta2/install_generator.rb |
meta2-0.0.2 | lib/generators/meta2/install_generator.rb |
meta2-0.0.1 | lib/generators/meta2/install_generator.rb |