Class: ShellCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/reggae.rb

Overview

A shell command

Instance Method Summary collapse

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

#jsonifyObject



61
62
63
# File 'lib/reggae.rb', line 61

def jsonify
  @cmd == '' ? {} : { type: 'shell', cmd: @cmd }
end