Sha256: 0c7813cef6845acf7ad7f09e05548e1e616f82ce46e077612d93e08dbd1bdf63
Contents?: true
Size: 943 Bytes
Versions: 6
Compression:
Stored size: 943 Bytes
Contents
# frozen_string_literal: true require 'dkdeploy/test_environment/application' ssh_config = {} ssh_key_files = Dir.glob(File.join(Dir.getwd, '.vagrant', 'machines', '**', 'virtualbox', 'private_key')) unless ssh_key_files.empty? # Define generated ssh key files ssh_config = { user: 'vagrant', keys: ssh_key_files } end TEST_APPLICATION = Dkdeploy::TestEnvironment::Application.new(File.expand_path('../..', __dir__), 'dkdeploy-core.test', ssh_config) TEST_APPLICATION.mysql_connection_settings = { host: 'dkdeploy-core.test', username: 'root', password: 'ilikerandompasswords' } # this configuration tricks Bundler into executing another Bundler project with clean enviroment # The official way via Bundler.with_clean_env did not work properly here Aruba.configure do |config| config.command_runtime_environment = { 'BUNDLE_GEMFILE' => File.join(TEST_APPLICATION.test_app_path, 'Gemfile') } config.exit_timeout = 30 end
Version data entries
6 entries across 6 versions & 1 rubygems