Sha256: 5e68565f4893ce6f2892d090ff14f25ed674f1aebee6183b2682cd553a9a5bd5
Contents?: true
Size: 394 Bytes
Versions: 7
Compression:
Stored size: 394 Bytes
Contents
module EY class EC2 def initialize(opts = {}) @ec2 = RightAws::Ec2.new(opts[:aws_secret_id], opts[:aws_secret_key], :logger => Logger.new("/dev/null")) end def method_missing(method, *a, &b) @ec2.send(method, *a, &b) rescue RightAws::AwsError => e retries ||= 10 retries -= 1 raise e if retries == 0 sleep 30 retry end end end
Version data entries
7 entries across 7 versions & 1 rubygems