summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitfrank <mitfrank@cisco.com>2015-05-22 09:29:50 -0600
committermitfrank <mitfrank@cisco.com>2015-05-22 09:29:50 -0600
commit5e4abaab3ad1790c524eb3e1b6f2bfaa26a1e832 (patch)
tree9bc7981ee0cd508af70d4e6bb57e776f4b98ba5c
parente1d5a8e432708884c9a99a00dd898507fafa20cb (diff)
Read the filename property being passed in
-rw-r--r--lib/tfa/storage.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tfa/storage.rb b/lib/tfa/storage.rb
index 1586278..1424315 100644
--- a/lib/tfa/storage.rb
+++ b/lib/tfa/storage.rb
@@ -2,8 +2,8 @@ module TFA
class Storage
include Enumerable
- def initialize(filename:)
- @storage = PStore.new(File.join(Dir.home, ".#{filename}.pstore"))
+ def initialize(options)
+ @storage = PStore.new(File.join(Dir.home, ".#{options[:filename]}.pstore"))
end
def each