Sha256: ec6ac5ee0dce7f7e40ae813374c79c18ae0567ab23ed72325381901902f58584

Contents?: true

Size: 507 Bytes

Versions: 10

Compression:

Stored size: 507 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 "../fixtures/authorities", "config/authorities"
  end

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

end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
qa-0.5.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.5.0 spec/internal/lib/generators/test_app_generator.rb
qa-0.4.3 spec/internal/lib/generators/test_app_generator.rb
qa-0.4.3 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.4.2 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.4.2 spec/internal/lib/generators/test_app_generator.rb
qa-0.4.1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.4.1 spec/internal/lib/generators/test_app_generator.rb
qa-0.4.0 spec/internal/lib/generators/test_app_generator.rb
qa-0.4.0 spec/test_app_templates/lib/generators/test_app_generator.rb