Sha256: dcf8616a05ea054b9c35ae96ff62181d0c7bfcbc8455da19fca4a2cf9d424cbf
Contents?: true
Size: 917 Bytes
Versions: 5
Compression:
Stored size: 917 Bytes
Contents
module Mercury module Generators class InstallGenerator < Rails::Generators::Base source_root Mercury::Engine.root desc "Installs Mercury into your application by copying the configuration file." class_option :full, :type => :boolean, :aliases => '-g', :desc => 'Full installation will install the layout and css files for easier customization.' def copy_config copy_file 'app/assets/javascripts/mercury.js' end def add_routes route %Q{mount Mercury::Engine => '/'} end def copy_layout_and_css_overrides if options[:full] || yes?("Install the layout file and CSS? [yN]") copy_file 'app/views/layouts/mercury.html.erb' copy_file 'app/assets/stylesheets/mercury.css' end end def display_readme readme 'POST_INSTALL' if behavior == :invoke end end end end
Version data entries
5 entries across 5 versions & 1 rubygems