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/dispatcher.rb,
lib/foreman_remote_execution_core/fake_script_runner.rb,
lib/foreman_remote_execution_core/polling_script_runner.rb
Overview
rubocop:enable Lint/HandleExceptions:
Defined Under Namespace
Modules: Actions Classes: Dispatcher, FakeScriptRunner, PollingScriptRunner, ScriptRunner
Constant Summary collapse
- VERSION =
'1.1.0'.freeze
Class Method Summary collapse
Class Method Details
.runner_class ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/foreman_remote_execution_core.rb', line 19 def self.runner_class @runner_class ||= if simulate? FakeScriptRunner elsif settings[:async_ssh] PollingScriptRunner else ScriptRunner end end |
.simulate? ⇒ Boolean
15 16 17 |
# File 'lib/foreman_remote_execution_core.rb', line 15 def self.simulate? %w(yes true 1).include? ENV.fetch('REX_SIMULATE', '').downcase end |