Skip to content

Instantly share code, notes, and snippets.

@elight
Last active August 29, 2015 13:59
Show Gist options
  • Save elight/10682560 to your computer and use it in GitHub Desktop.
Save elight/10682560 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
gem 'fog', '~> 1.20.0'
gem 'pry'
# Inside pry
compute.flavors.map { |f| [f.id, f.name] }
require 'rubygems'
require 'bundler/setup'
require 'fog/rackspace'
require 'pry'
provider_config = {
:provider => 'rackspace',
:rackspace_username => ENV['RACKSPACE_USERNAME'],
:rackspace_api_key => ENV['RACKSPACE_API_KEY'],
:rackspace_region => :dfw
}
compute = Fog::Compute.new(provider_config)
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment