aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/decrypt.rb
diff options
context:
space:
mode:
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