Class: Ppl::Command::Shell
- Inherits:
-
Application::Command
- Object
- Application::Command
- Ppl::Command::Shell
- Defined in:
- lib/ppl/command/shell.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
8 9 10 |
# File 'lib/ppl/command/shell.rb', line 8 def format=(value) @format = value end |
Instance Method Details
#execute(input, output) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/ppl/command/shell.rb', line 14 def execute(input, output) begin shell(input, output) rescue SystemExit, Interrupt terminate_gracefully(input, output) false end end |
#options(parser, options) ⇒ Object
10 11 12 |
# File 'lib/ppl/command/shell.rb', line 10 def (parser, ) parser. = "usage: ppl shell" end |