Should facilitate the following:
require 'fog/aws'
require 'fog/compute'
require 'fog/aws/compute'
I think once you `require 'rubygems'` those should work.
further cleanup should reduce common requires (ie nokogiri)
This function allows you to get the ip address of the current machine. I
found this useful because I wanted to add my personal or production
machine to a specific RDS security group. The call is quite simple and
connects to amazon's checkip website. The class is threadsafe and I have
included specs with it as well. I have also added the
Fog::AWS::RDS::SecurityGroup#authorize_me function to make adding the
current machine to a given RDS security group very easy.
* When running from command line, rescue the exception, and print the help message
When running fog for the first time with no setup, the missing_exception message
was surrounded above and below with a stack trace, which is not particularly
user-friendly. Since we've rescuing the LoadError only in bin/fog, we know
we don't have to worry about higher level libraries not getting the exception,
since it wouldn't propagate between processes.
Changing LoadError to Fog::Error::LoadError lets us know that this was
an issue on fog's part, rather than some other library we might be
using. Since we inherit from the LoadError class, any higher-level
libraries that were using a rescue based on LoadError will still work.
Otherwise, #dup-ing yourself and operating on a copy isn't enough
to ensure your own state remains untouched. For example,
AWS::Storage::Files#each will only work once without this change, since
even though the object operates on a copy of itself, its 'marker' attribute
winds up getting changed because @attributes is shared with the copy.
Connection errors had the behavior of failing catastrophically, which had
some rather unpleasant implications for things like Model#wait_for, which
implicitly reload repeatedly without any protection.
This change may be better suited to special cases (e.g. Model#wait_for).
When parsing a Route53 DNS record containing a " such as
"v=DKIM1; k=rsa; p=MIGfMA0GCSqG....x59/8qdGvAo+S5xwIDAQAB", the parser just retains the last double quote.