Skip to content

Instantly share code, notes, and snippets.

@skatenerd
Created October 28, 2012 22:43
Show Gist options
  • Save skatenerd/3970246 to your computer and use it in GitHub Desktop.
Save skatenerd/3970246 to your computer and use it in GitHub Desktop.
magic
1.9.3-p125 :001 > require 'fog'
=> true
1.9.3-p125 :002 > Fog::Compute::AWS
=> Fog::Compute::AWS
1.9.3-p125 :003 > Fog::Compute::AWS::SecurityGroup
NameError: uninitialized constant Fog::Compute::AWS::SecurityGroup
from (irb):3
from /Users/8thlight/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
1.9.3-p125 :004 > c = Fog::Compute.new({:provider => "AWS", :aws_access_key_id => "a", :aws_secret_access_key => "abc"})
=> #<Fog::Compute::AWS::Real:70315738224820 @use_iam_profile=nil @aws_access_key_id="a" @aws_credentials_expire_at=nil @connection_options={} @region="us-east-1" @instrumentor=nil @instrumentor_name="fog.aws.compute" @version="2012-07-20" @endpoint=nil @host="ec2.us-east-1.amazonaws.com" @path="/" @persistent=false @port=443 @scheme="https" @connection=#<Fog::Connection:0x007fe751330cd0 @excon=#<Excon::Connection:0x007fe751330c80 @connection={:chunk_size=>1048576, :connect_timeout=>60, :headers=>{}, :instrumentor_name=>"excon", :mock=>false, :nonblock=>true, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/Users/8thlight/.rvm/gems/ruby-1.9.3-p125@boucher/gems/excon-0.16.3/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"ec2.us-east-1.amazonaws.com", :path=>"/", :port=>"443", :query=>nil, :scheme=>"https"}, @proxy=nil, @socket_key="ec2.us-east-1.amazonaws.com:443">, @persistent=false>>
1.9.3-p125 :005 > Fog::Compute::AWS::SecurityGroup
=> Fog::Compute::AWS::SecurityGroup
1.9.3-p125 :006 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment