Class: Arturo::AssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Arturo::AssetsGenerator
- Defined in:
- lib/generators/arturo/assets_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
6 7 8 |
# File 'lib/generators/arturo/assets_generator.rb', line 6 def self.source_root File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_assets ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/arturo/assets_generator.rb', line 10 def copy_assets copy_file 'arturo_customizations.css', 'public/stylesheets/arturo_customizations.css', :skip => true unless defined?(Sprockets) copy_file 'app/assets/stylesheets/arturo.css', 'public/stylesheets/arturo.css', :force => true copy_file 'app/assets/javascripts/arturo.js', 'public/javascripts/arturo.js' copy_file 'app/assets/images/colon.png', 'public/images/colon.png' end end |