Class: Keystorage::Command::List

Inherits:
Base
  • Object
show all
Defined in:
lib/keystorage/command/list.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, run

Constructor Details

This class inherits a constructor from Keystorage::Command::Base

Class Method Details

.helpObject



16
17
18
19
20
21
22
23
# File 'lib/keystorage/command/list.rb', line 16

def help
  "Description:
    list in storage

Usage:
    keystrage [options] list [group]
"
end

Instance Method Details

#execute(argv) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/keystorage/command/list.rb', line 7

def execute(argv)
  site = argv.shift
  ks = Manager.new(@file)
  ks.list(site).each do |v|
    puts v
  end
end