Class: KBSecret::CLI::Command::Types
- Defined in:
- lib/kbsecret/cli/command/types.rb
Overview
The implementation of kbsecret types
.
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
-
#initialize(argv) ⇒ Types
constructor
A new instance of Types.
- #run! ⇒ Object
Methods inherited from Abstract
command_name, config, #setup!, #validate!
Constructor Details
#initialize(argv) ⇒ Types
Returns a new instance of Types.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/kbsecret/cli/command/types.rb', line 8 def initialize(argv) super(argv) do |cli| cli.slop do |o| o. = " Usage:\n kbsecret types\n HELP\n end\n end\nend\n" |
Instance Method Details
#run! ⇒ Object
20 21 22 |
# File 'lib/kbsecret/cli/command/types.rb', line 20 def run! puts KBSecret::Record.record_types.join("\n") end |