Class: Leather::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Leather::InstallGenerator
- Defined in:
- lib/generators/leather/install/install_generator.rb
Instance Method Summary collapse
- #copy_bootstrap_variables ⇒ Object
- #copy_devise_views ⇒ Object
- #copy_high_voltage_config ⇒ Object
- #copy_navigation ⇒ Object
- #copy_pages ⇒ Object
- #mount ⇒ Object
Instance Method Details
#copy_bootstrap_variables ⇒ Object
21 22 23 |
# File 'lib/generators/leather/install/install_generator.rb', line 21 def copy_bootstrap_variables copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss")) end |
#copy_devise_views ⇒ Object
9 10 11 |
# File 'lib/generators/leather/install/install_generator.rb', line 9 def copy_devise_views directory("views/devise", Rails.root.join("app", "views", "devise")) end |
#copy_high_voltage_config ⇒ Object
25 26 27 |
# File 'lib/generators/leather/install/install_generator.rb', line 25 def copy_high_voltage_config copy_file("high_voltage.rb", Rails.root.join("config", "initializers", "high_voltage.rb")) end |
#copy_navigation ⇒ Object
17 18 19 |
# File 'lib/generators/leather/install/install_generator.rb', line 17 def copy_file("_navigation.html.haml", Rails.root.join("app", "views", "application", "_navigation.html.haml")) end |
#copy_pages ⇒ Object
13 14 15 |
# File 'lib/generators/leather/install/install_generator.rb', line 13 def copy_pages directory("views/pages", Rails.root.join("app", "views", "pages")) end |
#mount ⇒ Object
5 6 7 |
# File 'lib/generators/leather/install/install_generator.rb', line 5 def mount route "mount Leather::Engine => '/'" end |