Class: Poirot::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Poirot::Generators::InstallGenerator
- Defined in:
- lib/generators/poirot/install/install_generator.rb
Instance Method Summary collapse
- #copy_mustache ⇒ Object
- #copy_poirot ⇒ Object
- #copy_poirot_handlebars ⇒ Object
- #copy_poirot_hogan ⇒ Object
Instance Method Details
#copy_mustache ⇒ Object
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_poirot ⇒ Object
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_handlebars ⇒ Object
20 21 22 23 |
# File 'lib/generators/poirot/install/install_generator.rb', line 20 def say_status("copying", "poirot-handlebars.js", :green) copy_file "poirot-handlebars/poirot-handlebars.js", "public/javascripts/poirot-handlebars.js" end |
#copy_poirot_hogan ⇒ Object
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 |