Sha256: 008932365c146c346c0acdb0e2d5a9f0967cb2ff16a50fd8c3c93c9bba23ad25

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root Rails.root

  def update_app
    Bundler.with_clean_env do
      run "bundle install"
    end
  end

  def run_qa_installer
    generate "qa:install"
  end

  def run_local_authority_installer
    generate "qa:local"
  end

  def copy_local_authority_fixtures
    directory "../spec/fixtures/authorities", "config/authorities"
  end

  def run_migrations
    rake "qa:install:migrations"
    rake "db:migrate"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qa-0.7.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.6.0 spec/test_app_templates/lib/generators/test_app_generator.rb