aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer')
-rw-r--r--lib/keyringer/actions/ls.rb (renamed from lib/keyringer/checker.rb)10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/keyringer/checker.rb b/lib/keyringer/actions/ls.rb
index 5369b95..6f295ad 100644
--- a/lib/keyringer/checker.rb
+++ b/lib/keyringer/actions/ls.rb
@@ -19,10 +19,12 @@
#
module Keyringer
- class Checker
- def initialize
- path = Keyring::UserConfig.instance.path
- raise "No path configuration for #{$keyring} keyring." if path.nil?
+ module Actions
+ class Ls
+ def execute
+ path = Keyring::UserConfig.instance.path
+ Dir.entries(path + '/keys').join(' ')
+ end
end
end
end