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_high_voltage_config ⇒ Object
- #copy_ui_kit ⇒ Object
- #copy_ui_kit_styles ⇒ Object
- #copy_views ⇒ Object
Instance Method Details
#copy_high_voltage_config ⇒ Object
20 21 22 |
# File 'lib/generators/leather/install/install_generator.rb', line 20 def copy_high_voltage_config copy_file("high_voltage.rb", Rails.root.join("config", "initializers", "high_voltage.rb")) end |
#copy_ui_kit ⇒ Object
9 10 11 |
# File 'lib/generators/leather/install/install_generator.rb', line 9 def copy_ui_kit directory("views/pages", Rails.root.join("app", "views", "pages")) end |
#copy_ui_kit_styles ⇒ Object
13 14 15 16 17 18 |
# File 'lib/generators/leather/install/install_generator.rb', line 13 def copy_ui_kit_styles copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss")) copy_file("_devise.css.scss", Rails.root.join("app", "assets", "stylesheets", "_devise.css.scss")) copy_file("_off_canvas.css.scss", Rails.root.join("app", "assets", "stylesheets", "_off_canvas.css.scss")) copy_file("off_canvas.js.coffee", Rails.root.join("app", "assets", "javascripts", "off_canvas.js.coffee")) end |
#copy_views ⇒ Object
5 6 7 |
# File 'lib/generators/leather/install/install_generator.rb', line 5 def copy_views directory("views/devise", Rails.root.join("app", "views", "devise")) end |