Sha256: 60308954f280666d4cee3298fc75352e58bcbcf8e5e3a462ab13295794d8c94f
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require 'rails' module Poirot module Generators class InstallGenerator < ::Rails::Generators::Base desc "This generator installs Poirot JavaScript helper" source_root File.expand_path('../../../../../vendor/assets/javascripts/poirot', __FILE__) def copy_mustache say_status("copying", "Mustache.js", :green) copy_file "mustache.js", "public/javascripts/mustache.js" end def copy_poirot say_status("copying", "poirot.js", :green) copy_file "poirot.js", "public/javascripts/poirot.js" end end end end if ::Rails.version < "3.1"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
poirot-0.1.0 | lib/generators/poirot/install/install_generator.rb |
poirot-0.0.3 | lib/generators/poirot/install/install_generator.rb |