Class: MobileFirstBootstrapGrid::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MobileFirstBootstrapGrid::Generators::InstallGenerator
- Defined in:
- lib/generators/mobile_first_bootstrap_grid/install/install_generator.rb,
lib/generators/mobile_first_bootstrap_grid/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_mobile_first_bootstrap_grid ⇒ Object
11 12 13 14 |
# File 'lib/generators/mobile_first_bootstrap_grid/install/install_generator.rb', line 11 def copy_mobile_first_bootstrap_grid say_status "copying", "mobile-first-bootstrap-grid.css to public/stylesheets", :green copy_file "mobile-first-bootstrap-grid.css", "public/stylesheets/mobile-first-bootstrap-grid.css" end |
#do_nothing ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/generators/mobile_first_bootstrap_grid/install/install_generator.rb', line 25 def do_nothing say_status("deprecated", "You are using Rails with the asset pipeline enabled, so this generator is not needed.") say_status("", "The necessary files are already in your asset pipeline.") say_status("", "Just add `/* *= require mobile-first-bootstrap-grid */` to your app/assets/stylesheets/application.css") say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.") # ok, nothing end |