From 08ac533d2156b666ae6ca68e797992629051315f Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 27 Jun 2014 19:22:44 +0200 Subject: make it possible that formats can query back to trocla itself, so they can lookup other 'keys' --- bin/trocla | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/trocla b/bin/trocla index dd32f84..6949318 100755 --- a/bin/trocla +++ b/bin/trocla @@ -65,10 +65,11 @@ def set(options) password = options.delete(:password) || STDIN.read.chomp end format = options.delete(:trocla_format) - Trocla.new(options.delete(:config_file)).set_password( + trocla = Trocla.new(options.delete(:config_file)) + trocla.set_password( options.delete(:trocla_key), format, - Trocla::Formats[format].format(password, options.delete(:other_options).shift.to_s) + trocla.formats(format).format(password, options.delete(:other_options).shift.to_s) ) "" end -- cgit v1.2.3