aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/decrypt.rb
diff options
context:
space:
mode:
authorZapata <zapata@xs4all.nl>2011-01-29 22:31:36 +0100
committerZapata <zapata@xs4all.nl>2011-01-29 22:31:36 +0100
commit6a9ba2257dfeccee61169c1e213515058eae2ba1 (patch)
tree3d33195f9b89863ebbea3c0951a41ef3bed57c1f /lib/keyringer/actions/decrypt.rb
parent5196fb316c1afc2b6b0d11132e105c7f1fb841fe (diff)
parent4987cf64fcfd6c417c06a3f939182b1052fe57c9 (diff)
downloadkeyringer-6a9ba2257dfeccee61169c1e213515058eae2ba1.tar.gz
keyringer-6a9ba2257dfeccee61169c1e213515058eae2ba1.tar.bz2
Merge remote branch 'origin/ruby' into ruby
Conflicts: bin/keyringer lib/keyringer.rb
Diffstat (limited to 'lib/keyringer/actions/decrypt.rb')
-rw-r--r--lib/keyringer/actions/decrypt.rb12
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