Sha256: baa98627fd71a5293c56bb6fb600c4b118f5852a4e2e2c3b0819311ca8f6b237
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require 'fog' require 'aruba/cucumber' Fog.mock! if ENV['PB_MOCK'] == 'true' Before do | scenario | @aruba_timeout_seconds = 600 @scenario = File.basename(scenario.file) ENV['CASSETTE'] = @scenario # proxy_options = { # :connection_options => { # :proxy => ENV['https_proxy'], # :ssl_verify_peer => false # } # } connect_options = { :provider => 'profitbricks', :profitbricks_username => ENV['PB_USERNAME'], :profitbricks_password => ENV['PB_API_PASSWORD'], } #connect_options.merge!(proxy_options) unless ENV['https_proxy'].nil? @compute = Fog::Compute.new(connect_options) end # Around do | scenario, block | # Bundler.with_clean_env do # block.call # end # end After('@creates_server') do @compute.servers.delete @server_id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-profitbricks-1.0.0 | features/support/env.rb |