Class: Perkins::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Perkins::Generators::InstallGenerator
- Defined in:
- lib/generators/perkins/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_init ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/perkins/install/install_generator.rb', line 10 def add_init perkins_init = "app/assets/stylesheets/perkins_init.less" unless File.exist?(perkins_init) copy_file "perkins_init.less", perkins_init end end |