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



5
6
7
# File 'lib/generators/arturo/assets_generator.rb', line 5

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

Instance Method Details

#copy_assetsObject



9
10
11
12
13
14
# File 'lib/generators/arturo/assets_generator.rb', line 9

def copy_assets
  copy_file 'arturo.css',                 'public/stylesheets/arturo.css', :force => true
  copy_file 'arturo_customizations.css',  'public/stylesheets/arturo_customizations.css', :skip => true
  copy_file 'arturo.js',                  'public/javascripts/arturo.js'
  copy_file 'semicolon.png',              'public/images/semicolon.png'
end