lib/puppet_x/coi/jboss/internal/cli_executor.rb
# Method that executes command and returns outut
# @param cmd [String]          command that will be executed
# @param runasdomain [Boolean] if command will be executen in comain instance
# @param ctrlcfg [Hash]        hash with configuration
# @param try [PuppetX::Coi::Jboss::Value::Try] the try object
# @return [Hash] a hash of `:result` as `Boolean`, and `:data` as `Hash`
Method that executes command and returns outut
Method that executes command and returns outut
def execute_and_get(cmd, runasdomain, ctrlcfg, try)
    state = run_jboss_command(cmd, runasdomain, ctrlcfg, try)
    if state.success?
      read_output state.output
    else
      final_result false, state.output
    end
  end
def execute_and_get ( cmd , runasdomain , ctrlcfg , try ) state = run_jboss_command ( cmd , runasdomain , ctrlcfg , try ) if state . success? read_output state . output else final_result false , state . output end end
Method that executes command and returns outut
Method that executes command and returns outut
a hash of `:result` as `Boolean`, and `:data` as `Hash`
a hash of ` : result ` as ` Boolean ` and ` : data ` as ` Hash `
Hash
cmd
command that will be executed
command that will be executed
runasdomain
if command will be executen in comain instance
if command will be executen in comain instance
ctrlcfg
hash with configuration
hash with configuration
try
the try object
the try object