Class: Ppl::Command::Version

Inherits:
Application::Command show all
Defined in:
lib/ppl/command/version.rb

Instance Attribute Summary collapse

Attributes inherited from Application::Command

#storage

Instance Method Summary collapse

Methods inherited from Application::Command

add_property

Instance Attribute Details

#format=(value) ⇒ Object (writeonly)

Sets the attribute format

Parameters:

  • value

    the value to set the attribute format to.



7
8
9
# File 'lib/ppl/command/version.rb', line 7

def format=(value)
  @format = value
end

Instance Method Details

#execute(input, output) ⇒ Object



13
14
15
16
# File 'lib/ppl/command/version.rb', line 13

def execute(input, output)
  output.line("ppl version #{Ppl::Version}")
  true
end

#options(parser, options) ⇒ Object



9
10
11
# File 'lib/ppl/command/version.rb', line 9

def options(parser, options)
  parser.banner = "usage: ppl version"
end