Commit 5e4abaa

mitfrank <mitfrank@cisco.com>
2015-05-22 15:29:50
Read the filename property being passed in
1 parent e1d5a8e
Changed files (1)
lib
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