Class: Puppet_X::Coi::Jboss::Internal::State::ExecutionState

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_x/coi/jboss/internal/state/execution_state.rb

Overview

Wrapper that holds informations about result of command execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ret_code, success, output, command) ⇒ ExecutionState

Constructor that creates execution state object

Parameters:

  • ret_code (Int)

    return code of command execution

  • succes (Boolean)

    value that represents if command execution was succesfull

  • output (String)

    result of command execution

  • command (String)

    command that was executed



8
9
10
11
12
13
# File 'lib/puppet_x/coi/jboss/internal/state/execution_state.rb', line 8

def initialize(ret_code, success, output, command)
  @ret_code = ret_code
  @success = success
  @output = output
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Standard getters for ret_code, success, output and command



16
17
18
# File 'lib/puppet_x/coi/jboss/internal/state/execution_state.rb', line 16

def command
  @command
end

#outputObject (readonly)

Standard getters for ret_code, success, output and command



16
17
18
# File 'lib/puppet_x/coi/jboss/internal/state/execution_state.rb', line 16

def output
  @output
end

#ret_codeObject (readonly)

Standard getters for ret_code, success, output and command



16
17
18
# File 'lib/puppet_x/coi/jboss/internal/state/execution_state.rb', line 16

def ret_code
  @ret_code
end

#successObject (readonly)

Standard getters for ret_code, success, output and command



16
17
18
# File 'lib/puppet_x/coi/jboss/internal/state/execution_state.rb', line 16

def success
  @success
end