Created
June 24, 2010 19:57
-
-
Save pvh/451892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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