Class: Waterworks::ShellCommandPrecondition

Inherits:
PipelineObject show all
Defined in:
lib/waterworks/preconditions/shell_command_precondition.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PipelineObject

#<=>, base_attrs, #collect_attrs!, from_hash, from_json, #set_attrs, #sourceify, #to_fhash, #to_hash, #to_json

Constructor Details

#initialize(id = nil, name = nil) ⇒ ShellCommandPrecondition

Returns a new instance of ShellCommandPrecondition.



30
31
32
# File 'lib/waterworks/preconditions/shell_command_precondition.rb', line 30

def initialize(id = nil, name = nil)
  super(id, name).set_attrs(type: 'ShellCommandPrecondition')
end

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/waterworks/preconditions/shell_command_precondition.rb', line 5

def self.safe_fields
  {
    attemptStatus: :string,
    attemptTimeout: :string,
    failureAndRerunMode: :string,
    lateAfterTimeout: :string,
    maximumRetries: :string,
    onFail: :ref,
    onLateAction: :ref,
    onSuccess: :ref,
    parent: :ref,
    preconditionTimeout: :string,
    reportProgressTimeout: :string,
    retryDelay: :string,
    scriptArgument: :string,
    stderr: :string,
    stdout: :string,
    command: :string,
    scriptUri: :string,
    type: :string,
  }.merge superclass.safe_fields
end