Skip to content

Instantly share code, notes, and snippets.

@pvh
Created June 24, 2010 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvh/451892 to your computer and use it in GitHub Desktop.
Save pvh/451892 to your computer and use it in GitHub Desktop.
diff --git a/lib/swirl/ec2.rb b/lib/swirl/ec2.rb
index fd795f5..4f97bf5 100644
--- a/lib/swirl/ec2.rb
+++ b/lib/swirl/ec2.rb
@@ -21,11 +21,11 @@ module Swirl
def initialize(options)
@aws_access_key_id =
- options[:aws_access_key_id] ||
- raise ArgumentError, "no aws_access_key_id provided"
+ options[:aws_access_key_id] or
+ raise ArgumentError, "no aws_access_key_id provided"
@aws_secret_access_key =
- options[:aws_secret_access_key] ||
- raise ArgumentError, "no aws_secret_access_key provided"
+ options[:aws_secret_access_key] or
+ raise ArgumentError, "no aws_secret_access_key provided"
@hmac = HMAC::SHA256.new(@aws_secret_access_key)
@version = options[:version] || "2009-11-30"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment