Class: Once::ActionResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



9
10
11
# File 'lib/buildonce.rb', line 9

def exit_code
  @exit_code
end

#outputsObject

Returns the value of attribute outputs

Returns:

  • (Object)

    the current value of outputs



9
10
11
# File 'lib/buildonce.rb', line 9

def outputs
  @outputs
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



9
10
11
# File 'lib/buildonce.rb', line 9

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



9
10
11
# File 'lib/buildonce.rb', line 9

def stdout
  @stdout
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
16
17
# File 'lib/buildonce.rb', line 10

def to_h
  {
    exit_code: exit_code,
    stdout: stdout,
    stderr: stderr,
    outputs: outputs || {},
  }
end