class Mercury::Generators::InstallGenerator
Public Instance Methods
add_routes()
click to toggle source
# File lib/generators/mercury/install/install_generator.rb, line 15 def add_routes route %Q{mount Mercury::Engine => '/'} end
copy_config()
click to toggle source
# File lib/generators/mercury/install/install_generator.rb, line 11 def copy_config copy_file 'app/assets/javascripts/mercury.js' end
copy_layout_and_css_overrides()
click to toggle source
# File lib/generators/mercury/install/install_generator.rb, line 19 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
display_readme()
click to toggle source
# File lib/generators/mercury/install/install_generator.rb, line 26 def display_readme readme 'POST_INSTALL' if behavior == :invoke end