Class: Metaslug::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Metaslug::Generators::InstallGenerator
- Defined in:
- lib/rails/generators/metaslug/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rails/generators/metaslug/install/install_generator.rb', line 4 def self. <<-BANNER.chomp rails generate metaslug:install Create locale's folder and initializer. BANNER end |
Instance Method Details
#create_locales_folder ⇒ Object
12 13 14 |
# File 'lib/rails/generators/metaslug/install/install_generator.rb', line 12 def create_locales_folder empty_directory "config/metaslug" end |
#generate_install_file ⇒ Object
16 17 18 |
# File 'lib/rails/generators/metaslug/install/install_generator.rb', line 16 def generate_install_file create_file "config/initializers/metaslug.rb", "require 'liquid'" end |