lib/puppet_x/coi/jboss/internal/execution_state_wrapper.rb
# Method that handles delegation to system executor
# @param cmd [PuppetX::Coi::Jboss::Value::Command] command to be executed
# @param jbosscmd [String] to be executed
# @param environment [Hash] hash that hold informations about configuration
# @return [PuppetX::Coi::Jboss::Internal::ExecutionState] execution state that hold information about result of execution
Method that handles delegation to system executor
Method that handles delegation to system executor
def execute(cmd, jbosscmd)
    lines = exec_command(cmd)
    result = last_execute_result
    code = result.exitstatus
    success = result.success?
    PuppetX::Coi::Jboss::Internal::State::ExecutionState.new(
      code,
      success,
      lines,
      jbosscmd
    )
  end
def execute ( cmd , jbosscmd ) lines = exec_command ( cmd ) result = last_execute_result code = result . exitstatus success = result . success? PuppetX :: Coi :: Jboss :: Internal :: State :: ExecutionState . new ( code , success , lines , jbosscmd ) end
Method that handles delegation to system executor
Method that handles delegation to system executor
execution state that hold information about result of execution
execution state that hold information about result of execution
PuppetX::Coi::Jboss::Internal::ExecutionState
cmd
command to be executed
command to be executed
jbosscmd
to be executed
to be executed
environment
<not_specific>
hash that hold informations about configuration
hash that hold informations about configuration