lib/tfa/add_command.rb in tfa-0.0.3 vs lib/tfa/add_command.rb in tfa-0.0.4

- old
+ new

@@ -4,13 +4,10 @@ @storage = storage end def run(arguments) name = arguments.first - secret = arguments.last - @storage.transaction do - @storage[name] = secret - end + @storage.save(arguments.first, arguments.last) "Added #{name}" end end end