Class: Arturo::AssetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/arturo/assets_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/generators/arturo/assets_generator.rb', line 7

def self.source_root
  File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#copy_assetsObject



11
12
13
14
15
16
17
18
19
# File 'lib/generators/arturo/assets_generator.rb', line 11

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