diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-01-29 18:50:09 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-01-29 18:50:09 -0200 |
commit | 2c26d9e2130bb5751205963cb8ff8ca459226f0f (patch) | |
tree | 37b1ab748de8307dd43810457f3fa524f45d4969 /lib/keyringer/actions/decrypt.rb | |
parent | 27478872a1f88971208813e09795a532c73a7ae2 (diff) | |
download | keyringer-2c26d9e2130bb5751205963cb8ff8ca459226f0f.tar.gz keyringer-2c26d9e2130bb5751205963cb8ff8ca459226f0f.tar.bz2 |
Moving parser to keyringer module; actions should be in a submodule
Diffstat (limited to 'lib/keyringer/actions/decrypt.rb')
-rw-r--r-- | lib/keyringer/actions/decrypt.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/keyringer/actions/decrypt.rb b/lib/keyringer/actions/decrypt.rb new file mode 100644 index 0000000..8fdd175 --- /dev/null +++ b/lib/keyringer/actions/decrypt.rb @@ -0,0 +1,12 @@ +module Keyringer + module Actions + class Decrypt + def execute + filename = $args[0] + crypt = Keyring::Crypt.new + output = crypt.decrypt(filename) + return output + end + end + end +end |