Class: Poirot::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_mustacheObject



10
11
12
13
# File 'lib/generators/poirot/install/install_generator.rb', line 10

def copy_mustache
  say_status("copying", "Mustache.js", :green)
  copy_file "poirot-mustache/mustache.js", "public/javascripts/mustache.js"
end

#copy_poirotObject



15
16
17
18
# File 'lib/generators/poirot/install/install_generator.rb', line 15

def copy_poirot
  say_status("copying", "poirot.js", :green)
  copy_file "poirot-base/poirot.js", "public/javascripts/poirot.js"
end

#copy_poirot_handlebarsObject



20
21
22
23
# File 'lib/generators/poirot/install/install_generator.rb', line 20

def copy_poirot_handlebars
  say_status("copying", "poirot-handlebars.js", :green)
  copy_file "poirot-handlebars/poirot-handlebars.js", "public/javascripts/poirot-handlebars.js"
end

#copy_poirot_hoganObject



25
26
27
28
# File 'lib/generators/poirot/install/install_generator.rb', line 25

def copy_poirot_hogan
  say_status("copying", "poirot-hogan.js", :green)
  copy_file "poirot-hogan/poirot-hogan.js", "public/javascripts/poirot-hogan.js"
end