Class: C2::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#cache_cssObject



9
10
11
# File 'lib/generators/c2/install_generator.rb', line 9

def cache_css
  copy_file "public/stylesheets/c2.css", "public/stylesheets/c2.css"
end

#cache_imagesObject



13
14
15
# File 'lib/generators/c2/install_generator.rb', line 13

def cache_images
  directory "public/images/c2", "public/images/c2"
end

#cache_jsObject



5
6
7
# File 'lib/generators/c2/install_generator.rb', line 5

def cache_js
  directory "public/javascripts/c2", "public/javascripts/c2"
end