Sha256: d5798162f33a103b88217a1f31210621ba5b9f1abe6182ad4ca2ab22984cb979

Contents?: true

Size: 548 Bytes

Versions: 18

Compression:

Stored size: 548 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

18 entries across 18 versions & 1 rubygems

Version Path
qa-3.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-4.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-4.0.0.rc3 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-4.0.0.rc2 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-4.0.0.rc1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-3.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.1.2 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.1.1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-2.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-1.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-1.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-1.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.11.1 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.11.0 spec/test_app_templates/lib/generators/test_app_generator.rb
qa-0.10.2 spec/test_app_templates/lib/generators/test_app_generator.rb