class ShooterGenerator < Rails::Generators::Base
  source_root File.expand_path('../../../..', __FILE__)

  desc "Copy migrations and models into application, sets default application name"
  def copy_models
    rake("shooter_engine:install:migrations")

    [:album, :photo, :page, :user].each do |model|
      copy_file "app/models/#{model}.rb", "app/models/#{model}.rb"
    end

    gem 'devise'
    gem 'jquery-rails'
    gem 'coffee-rails'
    gem 'sass-rails'
    gem 'bootstrap-sass'
    gem 'wmd-rails'
    gem 'slim'
    gem 'carrierwave'
    gem 'mini_magick'

    application "  Shooter.application_name = 'Change me!'"
    say_status 'modify', 'config/application.rb'
  end
end
