Sha256: f09e75eefb050fb682f4fe75eee657723bef961543d74611e86d86ed8e92bf4b

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 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:files"
    generate "qa:local:tables"
  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

4 entries across 4 versions & 1 rubygems

Version Path
qa-0.10.1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.10.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.9.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.8.0 spec/test_app_templates/lib/generators/test_app_generator.rb