Sha256: f94205723d3a9d1c6b7cd0aa2d75ab82e787dbfe064e719a2e45795789755c0f
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
module Fuel module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc "Creates a Fuel initializer in config/initializers, adds/migrates Fuel migration files and migrates the files, and adds the appropriate route to config/routes" def install run 'bundle install' route "mount Fuel::Engine => '/blog'" rake 'fuel:install:migrations' rake 'db:migrate' end def copy_initializer template "fuel.rb", "config/initializers/fuel.rb" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fuel-0.3.3 | lib/generators/fuel/install_generator.rb |
fuel-0.3.2 | lib/generators/fuel/install_generator.rb |