diff options
Diffstat (limited to 'lib/keyringer/actions')
-rw-r--r-- | lib/keyringer/actions/decrypt.rb | 6 | ||||
-rw-r--r-- | lib/keyringer/actions/init.rb | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/keyringer/actions/decrypt.rb b/lib/keyringer/actions/decrypt.rb index f76dcc9..33f01c2 100644 --- a/lib/keyringer/actions/decrypt.rb +++ b/lib/keyringer/actions/decrypt.rb @@ -22,10 +22,10 @@ module Keyringer module Actions class Decrypt def execute - filename = $args[0] + path = Keyring::UserConfig.instance.path + filename = path + '/keys/' + $args[0] + '.asc' crypt = Keyring::Crypt.new - output = crypt.decrypt(filename) - return output + crypt.decrypt(filename) end end end diff --git a/lib/keyringer/actions/init.rb b/lib/keyringer/actions/init.rb index 1aa6de1..d48abbf 100644 --- a/lib/keyringer/actions/init.rb +++ b/lib/keyringer/actions/init.rb @@ -22,6 +22,11 @@ module Keyringer module Actions class Init def initialize + path = Keyring::UserConfig.instance.path + Backend::Git.new + end + + def execute end end end |