Module: ForemanRemoteExecutionCore

Extended by:
ForemanTasksCore::SettingsLoader
Defined in:
lib/foreman_remote_execution_core/script_runner.rb,
lib/foreman_remote_execution_core.rb,
lib/foreman_remote_execution_core/actions.rb,
lib/foreman_remote_execution_core/version.rb,
lib/foreman_remote_execution_core/fake_script_runner.rb

Overview

rubocop:enable Lint/HandleExceptions:

Defined Under Namespace

Modules: Actions Classes: FakeScriptRunner, ScriptRunner

Constant Summary collapse

VERSION =
'1.0.5'.freeze

Class Method Summary collapse

Class Method Details

.runner_classObject



16
17
18
# File 'lib/foreman_remote_execution_core.rb', line 16

def self.runner_class
  @runner_class ||= simulate? ? FakeScriptRunner : ScriptRunner
end

.simulate?Boolean



12
13
14
# File 'lib/foreman_remote_execution_core.rb', line 12

def self.simulate?
  %w(yes true 1).include? ENV.fetch('REX_SIMULATE', '').downcase
end