Sha256: 22a656d6ea9f85a3241d586b7f370fcbbf5eb9ca15d14f92160e663ddcfe2871
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dkdeploy-core-9.2.1 | features/support/env.rb |