Class: Ppl::Command::Shell

Inherits:
Application::Command show all
Defined in:
lib/ppl/command/shell.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.



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 options(parser, options)
  parser.banner = "usage: ppl shell"
end