Sha256: 5d987a3e7615b9cefadab5d66b29453817e65b25ef1bc2a0c7b54c6ffa7f7067
Contents?: true
Size: 963 Bytes
Versions: 3
Compression:
Stored size: 963 Bytes
Contents
module Epyce module Generators class InstallGenerator < ::Rails::Generators::Base desc "This generator install default haml application layout and several files in public" source_root File.expand_path('../../template', __FILE__) def copy_layout say_status("Copying", "application layout files", :green) ["application.html.haml", "_header.html.haml", "_footer.html.haml", "_flashes.html.haml"].each do |f| copy_file "app/views/layouts/#{f}", "app/views/layouts/#{f}" end end def copy_public say_status("Copying", "application layout files", :green) ["apple-touch-icon-114x114-precomposed.png", "apple-touch-icon-57x57-precomposed.png", "apple-touch-icon-72x72-precomposed.png", "apple-touch-icon-precomposed.png", "apple-touch-icon.png", "crossdomain.xml", "favicon.png" ].each do |f| copy_file "public/#{f}", "public/#{f}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epyce-0.7.0 | lib/generators/epyce/install/install_generator.rb |
epyce-0.6.0 | lib/generators/epyce/install/install_generator.rb |
epyce-0.5.0 | lib/generators/epyce/install/install_generator.rb |