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.5.7 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.6 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.5 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.4 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.3 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.2 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.1 lib/foreman_tasks/triggers.rb
foreman-tasks-0.5.0 lib/foreman_tasks/triggers.rb
foreman-tasks-0.4.0 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.6 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.5 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.4 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.3 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.2 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.1 lib/foreman_tasks/triggers.rb
foreman-tasks-0.3.0 lib/foreman_tasks/triggers.rb
foreman-tasks-0.2.2 lib/foreman_tasks/triggers.rb
foreman-tasks-0.2.1 lib/foreman_tasks/triggers.rb
foreman-tasks-0.2.0 lib/foreman_tasks/triggers.rb