Sha256: a4ac7d6d40ece96586410c9ec617945bc6d2e8abc0e4a33fb540152e775121a6
Contents?: true
Size: 968 Bytes
Versions: 1
Compression:
Stored size: 968 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 => "-f", :desc => 'Full installation will install the layout and css overrides for easier customization.' def copy_config copy_file 'vendor/assets/javascripts/mercury.js', 'app/assets/javascripts/mercury.js' end def copy_layout_and_css_overrides if options[:full] || yes?("Install the layout and CSS overrides files? [yN]") copy_file 'app/views/layouts/mercury.html.erb', 'app/views/layouts/mercury.html.erb' copy_file 'vendor/assets/stylesheets/mercury_overrides.css', 'app/assets/stylesheets/mercury_overrides.css' end end def display_readme readme 'POST_INSTALL' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.2.3 | lib/generators/mercury/install/install_generator.rb |