Class: OrangewebBootstrapGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/orangeweb_bootstrap/orangeweb_bootstrap_generator.rb

Instance Method Summary collapse

Instance Method Details

#initObject



4
5
6
7
8
9
10
11
12
# File 'lib/generators/orangeweb_bootstrap/orangeweb_bootstrap_generator.rb', line 4

def init
    # copy twitter bootstrap javascript files
    copy_file "bootstrap.js", "app/assets/javascripts/bootstrap.js"
    # copy twitter bootstrap stylesheets files
    copy_file "bootstrap.css", "app/assets/stylesheets/bootstrap.css"
    # copy twitter bootstrap image sprite files
    copy_file "glyphicons-halflings.png", "app/assets/images/glyphicons-halflings.png"
    copy_file "glyphicons-halflings-white.png", "app/assets/images/glyphicons-halflings-white.png"
end