Class: ShellCommand
- Inherits:
-
Object
- Object
- ShellCommand
- Defined in:
- lib/reggae.rb
Overview
A shell command
Instance Method Summary collapse
-
#initialize(cmd = '') ⇒ ShellCommand
constructor
A new instance of ShellCommand.
- #jsonify ⇒ Object
Constructor Details
#initialize(cmd = '') ⇒ ShellCommand
Returns a new instance of ShellCommand.
57 58 59 |
# File 'lib/reggae.rb', line 57 def initialize(cmd = '') @cmd = cmd end |
Instance Method Details
#jsonify ⇒ Object
61 62 63 |
# File 'lib/reggae.rb', line 61 def jsonify @cmd == '' ? {} : { type: 'shell', cmd: @cmd } end |