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