lib/puppet_x/coi/jboss/provider/abstract_jboss_cli.rb
# Method that ensures that there is cli executor, if not it will create default one
# @return [PuppetX::Coi::Jboss::Internal::CliExecutor] CLI executor
Method that ensures that there is cli executor, if not it will create default one
Method that ensures that there is cli executor if not it will create default one
def ensure_cli_executor
    if @cli_executor.nil?
      wrapper = PuppetX::Coi::Jboss::Internal::ExecutionStateWrapper.new(
        DEFAULT_SHELL_EXECUTOR
      )
      @cli_executor = PuppetX::Coi::Jboss::Internal::CliExecutor.new(
        wrapper, @execlogic
      )
    end
    @cli_executor
  end
def ensure_cli_executor if @cli_executor . nil? wrapper = PuppetX :: Coi :: Jboss :: Internal :: ExecutionStateWrapper . new ( DEFAULT_SHELL_EXECUTOR ) @cli_executor = PuppetX :: Coi :: Jboss :: Internal :: CliExecutor . new ( wrapper , @execlogic ) end @cli_executor end
Method that ensures that there is cli executor, if not it will create default one
Method that ensures that there is cli executor if not it will create default one
None
PuppetX::Coi::Jboss::Internal::CliExecutor