Sha256: 0d26c55db0ce099c64923fe98b3a5c9304fdf8d6027b7eced63efea5b5adc933
Contents?: true
Size: 944 Bytes
Versions: 9
Compression:
Stored size: 944 Bytes
Contents
require 'fog' require 'aruba/cucumber' Fog.mock! if ENV['RAX_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 => 'rackspace', :rackspace_username => ENV['RAX_USERNAME'], :rackspace_api_key => ENV['RAX_API_KEY'], :version => :v2, # Use Next Gen Cloud Servers :rackspace_region => ENV['RAX_REGION'].downcase.to_sym } 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
9 entries across 9 versions & 1 rubygems