Sha256: 91d36beade8c9877a5d0a53088f78d8c2ee59e45de2d604c36162129cf3fdc29
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require 'lockr/action/base' class ListAction < BaseAction def initialize( keyfile, vault) super( keyfile, vault) pwdlist = @pwdmgr.list() out = [] if keyfile.nil? pwdlist.each { |id,value| out << "Id: #{id}" } else pwdlist.each { |oid,site_directory| pwd_directory_id = site_directory pwd_directory_id.each { |username, pwdstore| out << "Id: #{pwdstore.id} / Username: #{pwdstore.username}" } } end out.sort! out.each{ |e| puts e } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lockr-0.5.2 | lib/lockr/action/list.rb |
lockr-0.5.1 | lib/lockr/action/list.rb |
lockr-0.5.0 | lib/lockr/action/list.rb |