Class: Showboat::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Showboat::Generators::InstallGenerator
- Defined in:
- lib/generators/showboat/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#cleanup_rails ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/showboat/install/install_generator.rb', line 7 def cleanup_rails remove_file "README.rdoc" remove_dir "app/assets" remove_dir "app/controllers" remove_dir "app/helpers" remove_dir "app/mailers" remove_dir "app/models" remove_dir "app/views" remove_dir "doc" remove_dir "lib" remove_dir "public" remove_dir "test" remove_dir "vendor/assets" end |
#copy_directories ⇒ Object
22 23 24 25 26 27 |
# File 'lib/generators/showboat/install/install_generator.rb', line 22 def copy_directories directory "app/assets" directory "app/controllers" directory "app/views" directory "public", "public" end |
#copy_files ⇒ Object
29 30 31 32 |
# File 'lib/generators/showboat/install/install_generator.rb', line 29 def copy_files copy_file "config/routes.rb" copy_file "README.md" end |