Class: Ppl::Command::Version
- Inherits:
-
Application::Command
- Object
- Application::Command
- Ppl::Command::Version
- Defined in:
- lib/ppl/command/version.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
writeonly
Sets the attribute format.
Attributes inherited from Application::Command
Instance Method Summary collapse
Methods inherited from Application::Command
Instance Attribute Details
#format=(value) ⇒ Object (writeonly)
Sets the attribute format
6 7 8 |
# File 'lib/ppl/command/version.rb', line 6 def format=(value) @format = value end |
Instance Method Details
#execute(input, output) ⇒ Object
12 13 14 15 |
# File 'lib/ppl/command/version.rb', line 12 def execute(input, output) output.line("ppl version #{Ppl::Version}") true end |
#options(parser, options) ⇒ Object
8 9 10 |
# File 'lib/ppl/command/version.rb', line 8 def (parser, ) parser. = "usage: ppl version" end |