Class: BestBoy::Generators::BestBoyGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/best_boy_generator.rb', line 10

def copy_config_file
  template 'best_boy.rb', 'config/initializers/best_boy.rb'
  if not options[:asset_pipeline] == "asset" or not options[:asset]
    template 'bootstrap/glyphicons-halflings-white.png', 'public/images/bootstrap/glyphicons-halflings-white.png'
    template 'bootstrap/glyphicons-halflings.png', 'public/images/bootstrap/glyphicons-halflings.png'
    template 'bootstrap/bootstrap.css', 'public/stylesheets/bootstrap.css'
    #datepicker by Stefan Petre (http://www.eyecon.ro/bootstrap-datepicker)
    template 'bootstrap/bootstrap_datepicker.css', 'public/stylesheets/bootstrap_datepicker.css' 
    template 'bootstrap/bootstrap_datepicker.js', 'public/javascripts/bootstrap_datepicker.js'
  end
end