Class: Kitestrings::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Kitestrings::Generators::InstallGenerator
- Defined in:
- lib/generators/kitestrings/install_generator.rb
Instance Method Summary collapse
- #copy_app_view_files ⇒ Object
- #copy_deploy ⇒ Object
- #copy_deploy_files ⇒ Object
- #copy_haml_files ⇒ Object
- #copy_rspec_files ⇒ Object
- #copy_scaffold_files ⇒ Object
- #copy_spec_ext ⇒ Object
Instance Method Details
#copy_app_view_files ⇒ Object
35 36 37 38 |
# File 'lib/generators/kitestrings/install_generator.rb', line 35 def copy_app_view_files copy_file "views/application/_navigation.html.haml", "app/views/application/_navigation.html.haml" copy_file "views/layouts/application.html.haml", "app/views/layouts/application.html.haml" end |
#copy_deploy ⇒ Object
11 12 13 |
# File 'lib/generators/kitestrings/install_generator.rb', line 11 def copy_deploy copy_file "deploy.rb", "config/deploy.rb" end |
#copy_deploy_files ⇒ Object
15 16 17 |
# File 'lib/generators/kitestrings/install_generator.rb', line 15 def copy_deploy_files directory "deploy", "config/deploy" end |
#copy_haml_files ⇒ Object
19 20 21 |
# File 'lib/generators/kitestrings/install_generator.rb', line 19 def copy_haml_files directory "haml", "lib/templates/haml" end |
#copy_rspec_files ⇒ Object
27 28 29 |
# File 'lib/generators/kitestrings/install_generator.rb', line 27 def copy_rspec_files directory "rspec", "lib/templates/rspec" end |
#copy_scaffold_files ⇒ Object
23 24 25 |
# File 'lib/generators/kitestrings/install_generator.rb', line 23 def copy_scaffold_files directory "rails", "lib/templates/rails" end |
#copy_spec_ext ⇒ Object
31 32 33 |
# File 'lib/generators/kitestrings/install_generator.rb', line 31 def copy_spec_ext directory "spec_ext", "spec_ext" end |