Sha256: 5bc57db727f2c689cf2e584a6a0a44706c33ccd6c5594c9a3e13631504a7860c

Contents?: true

Size: 720 Bytes

Versions: 153

Compression:

Stored size: 720 Bytes

Contents

module ForemanTasks
  module Triggers
    # for test overrides if needed
    attr_writer :foreman_tasks
    def foreman_tasks
      @foreman_tasks ||= ForemanTasks
    end

    def trigger(action, *args, &block)
      foreman_tasks.trigger action, *args, &block
    end

    def trigger_task(async, action, *args, &block)
      foreman_tasks.trigger_task(async, action, *args, &block)
    end

    def async_task(action, *args, &block)
      foreman_tasks.async_task(action, *args, &block)
    end

    def sync_task(action, *args, &block)
      foreman_tasks.sync_task(action, *args, &block)
    end

    def delay(action, delay_options, *args)
      foreman_tasks.delay(action, delay_options, *args)
    end
  end
end

Version data entries

153 entries across 153 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 lib/foreman_tasks/triggers.rb
foreman-tasks-10.0.1 lib/foreman_tasks/triggers.rb
foreman-tasks-10.0.0 lib/foreman_tasks/triggers.rb
foreman-tasks-9.2.3 lib/foreman_tasks/triggers.rb
foreman-tasks-9.2.2 lib/foreman_tasks/triggers.rb
foreman-tasks-9.2.1 lib/foreman_tasks/triggers.rb
foreman-tasks-9.2.0 lib/foreman_tasks/triggers.rb
foreman-tasks-9.1.1 lib/foreman_tasks/triggers.rb
foreman-tasks-9.0.4 lib/foreman_tasks/triggers.rb
foreman-tasks-9.1.0 lib/foreman_tasks/triggers.rb
foreman-tasks-9.0.2 lib/foreman_tasks/triggers.rb
foreman-tasks-9.0.1 lib/foreman_tasks/triggers.rb
foreman-tasks-8.3.3 lib/foreman_tasks/triggers.rb
foreman-tasks-9.0.0 lib/foreman_tasks/triggers.rb
foreman-tasks-8.2.1 lib/foreman_tasks/triggers.rb
foreman-tasks-8.1.4 lib/foreman_tasks/triggers.rb
foreman-tasks-8.3.2 lib/foreman_tasks/triggers.rb
foreman-tasks-8.3.1 lib/foreman_tasks/triggers.rb
foreman-tasks-8.1.3 lib/foreman_tasks/triggers.rb
foreman-tasks-8.3.0 lib/foreman_tasks/triggers.rb