Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added option to not use the 'all' key as fallback.

  • Loading branch information...
commit 24bcd046ee8e0485b38e459778639409e9792c41 1 parent 08c846d
@sebastiaanvisser sebastiaanvisser authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/aws-keys.rb
  2. +1 −1  lib/aws-keys/version.rb
View
6 lib/aws-keys.rb
@@ -27,8 +27,8 @@ def self.key_path (type)
find_key_path(type) || find_key_path("all")
end
- def self.keys (type)
- path = key_path(type)
+ def self.keys (type, match_all = true)
+ path = match_all ? key_path(type) : find_key_path(type)
return unless path
data = File.read(path)
# Explicitly match with regex, to make sure our data is right
@@ -50,4 +50,4 @@ def self.keys! (type)
k
end
-end
+end
View
2  lib/aws-keys/version.rb
@@ -1,3 +1,3 @@
module AwsKeys
- VERSION = "0.1"
+ VERSION = "0.2"
end
Please sign in to comment.
Something went wrong with that request. Please try again.