Class: Cardio::Generators::ModGenerator
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 16 |
# File 'card/lib/generators/mod/mod_generator.rb', line 7 def create_mod inside mod_path do data_dir assets_dir config_dir set_dir spec_dir empty_directory "public" end end |
#root_files ⇒ Object
18 19 20 |
# File 'card/lib/generators/mod/mod_generator.rb', line 18 def root_files template "README.md.erb", "#{mod_path}/README.md" end |