Sha256: 7378259ff81f054447d796132dfd6b633b703190a0997511a0722a92a830ae43
Contents?: true
Size: 743 Bytes
Versions: 9
Compression:
Stored size: 743 Bytes
Contents
require 'fog' if ENV['RAX_MOCK'] == 'true' Fog.mock! Fog::Rackspace::MockData.configure do |c| c[:image_name_generator] = Proc.new { "Ubuntu" } c[:ipv4_generator] = Proc.new { "10.11.12.2"} end 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 => :ord #Use Chicago Region } connect_options.merge!(proxy_options) unless ENV['https_proxy'].nil? compute = Fog::Compute.new(connect_options) # Force creation of Ubuntu image so it will show up in compute.images.list compute.images.get(0) end
Version data entries
9 entries across 9 versions & 1 rubygems