Sha256: d7516d1f81142d7bcddc43c3bbe387c09521c55e68727a95cd06982786ce8a02

Contents?: true

Size: 708 Bytes

Versions: 25

Compression:

Stored size: 708 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"

      # rake fuel:install
      def install
        run 'bundle install'
        route "mount Fuel::Engine => '/blog'"
        rake 'fuel:install:migrations'
        rake 'db:migrate'
      end

      # to generate migration updates:
      # rake fuel:install:migrations

      def copy_initializer
        template "fuel.rb", "config/initializers/fuel.rb"
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fuel-0.4.10 lib/generators/fuel/install_generator.rb
fuel-0.4.9 lib/generators/fuel/install_generator.rb
fuel-0.4.8 lib/generators/fuel/install_generator.rb
fuel-0.4.7 lib/generators/fuel/install_generator.rb
fuel-0.4.6 lib/generators/fuel/install_generator.rb
fuel-0.4.5 lib/generators/fuel/install_generator.rb
fuel-0.4.4 lib/generators/fuel/install_generator.rb
fuel-0.4.3 lib/generators/fuel/install_generator.rb
fuel-0.4.2 lib/generators/fuel/install_generator.rb
fuel-0.4.1 lib/generators/fuel/install_generator.rb
fuel-0.3.34 lib/generators/fuel/install_generator.rb
fuel-0.3.33 lib/generators/fuel/install_generator.rb
fuel-0.3.32 lib/generators/fuel/install_generator.rb
fuel-0.3.31 lib/generators/fuel/install_generator.rb
fuel-0.3.30 lib/generators/fuel/install_generator.rb
fuel-0.3.29 lib/generators/fuel/install_generator.rb
fuel-0.3.28 lib/generators/fuel/install_generator.rb
fuel-0.3.27 lib/generators/fuel/install_generator.rb
fuel-0.3.26 lib/generators/fuel/install_generator.rb
fuel-0.3.25 lib/generators/fuel/install_generator.rb