Class: Quacky::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#write_helper_filesObject



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

def write_helper_files
  # coffee builders
  copy_file 'pie_chart_builder.js.coffee', 'app/assets/javascripts/pie_chart_builder.js.coffee'
  copy_file 'line_graph_builder.js.coffee', 'app/assets/javascripts/line_graph_builder.js.coffee'
  
  # vendor files
  copy_file 'd3.v2.min.js', 'app/assets/javascripts/d3.v2.min.js'
  copy_file 'rickshaw.min.js', 'app/assets/javascripts/rickshaw.min.js'
  copy_file 'rickshaw.min.css', 'app/assets/stylesheets/rickshaw.min.css'
  copy_file 'line_graphs.css', 'app/assets/stylesheets/line_graphs.css'
end