Class: Cardio::Generators::ModGenerator
- Inherits:
-
ModBase
- Object
- Rails::Generators::NamedBase
- ModBase
- Cardio::Generators::ModGenerator
- Defined in:
- lib/generators/mod/mod_generator.rb
Overview
generate mod with standard directories
Instance Method Summary collapse
Methods inherited from ModBase
Methods included from ClassMethods
#banner, #banner_command, #namespace, #source_root
Instance Method Details
#create_mod ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/mod/mod_generator.rb', line 7 def create_mod inside mod_path do assets_dir config_dir set_dir spec_dir empty_directory "public" end end |
#root_files ⇒ Object
17 18 19 |
# File 'lib/generators/mod/mod_generator.rb', line 17 def root_files template "README.md.erb", "#{mod_path}/README.md" end |