Sha256: 37cd90cf11b341fea90754332be3576346a32c6d7d3ad8eb3e189ff705e67b0a

Contents?: true

Size: 611 Bytes

Versions: 39

Compression:

Stored size: 611 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
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
foreman-tasks-0.7.3 lib/foreman_tasks/triggers.rb
foreman-tasks-0.7.2 lib/foreman_tasks/triggers.rb
foreman-tasks-0.7.1 lib/foreman_tasks/triggers.rb
foreman-tasks-0.7.0 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.15 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.14 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.13 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.12 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.11 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.10 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.9 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.8 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.7 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.6 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.5 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.4 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.3 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.2 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.1 lib/foreman_tasks/triggers.rb
foreman-tasks-0.6.0 lib/foreman_tasks/triggers.rb