Module: ForemanTasksCore

Defined in:
lib/foreman_tasks_core.rb,
lib/foreman_tasks_core/runner.rb,
lib/foreman_tasks_core/ticker.rb,
lib/foreman_tasks_core/version.rb,
lib/foreman_tasks_core/otp_manager.rb,
lib/foreman_tasks_core/runner/base.rb,
lib/foreman_tasks_core/batch_action.rb,
lib/foreman_tasks_core/runner/action.rb,
lib/foreman_tasks_core/runner/parent.rb,
lib/foreman_tasks_core/runner/update.rb,
lib/foreman_tasks_core/task_launcher.rb,
lib/foreman_tasks_core/runner/command.rb,
lib/foreman_tasks_core/settings_loader.rb,
lib/foreman_tasks_core/shareable_action.rb,
lib/foreman_tasks_core/continuous_output.rb,
lib/foreman_tasks_core/runner/dispatcher.rb,
lib/foreman_tasks_core/batch_runner_action.rb,
lib/foreman_tasks_core/task_launcher/batch.rb,
lib/foreman_tasks_core/task_launcher/group.rb,
lib/foreman_tasks_core/task_launcher/single.rb,
lib/foreman_tasks_core/batch_callback_action.rb,
lib/foreman_tasks_core/runner/command_runner.rb,
lib/foreman_tasks_core/task_launcher/abstract.rb,
lib/foreman_tasks_core/output_collector_action.rb,
lib/foreman_tasks_core/single_runner_batch_action.rb

Defined Under Namespace

Modules: Runner, SettingsLoader, TaskLauncher Classes: BatchAction, BatchCallback, BatchRunnerAction, ContinuousOutput, OtpManager, OutputCollectorAction, ShareableAction, SingleRunnerBatchAction, Ticker

Constant Summary collapse

VERSION =
'0.3.3'.freeze

Class Method Summary collapse

Class Method Details

.dynflow_present?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/foreman_tasks_core.rb', line 20

def self.dynflow_present?
  defined? Dynflow
end

.dynflow_setup(dynflow_world) ⇒ Object



24
25
26
# File 'lib/foreman_tasks_core.rb', line 24

def self.dynflow_setup(dynflow_world)
  @dynflow_world = dynflow_world
end

.dynflow_worldObject



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

def self.dynflow_world
  raise 'Dynflow world not set. Call initialize first' unless @dynflow_world
  @dynflow_world
end

.silent_dead_letter_matchersObject



28
29
30
# File 'lib/foreman_tasks_core.rb', line 28

def self.silent_dead_letter_matchers
  [::Dynflow::DeadLetterSilencer::Matcher.new(ForemanTasksCore::Ticker)]
end