Sha256: 0eaee54f224de7e7d5cc541eaa28086076008861851a882d07ce7ececae31c6c
Contents?: true
Size: 444 Bytes
Versions: 4
Compression:
Stored size: 444 Bytes
Contents
require 'foreman_tasks/version' require 'foreman_tasks/engine' require 'foreman_tasks/dynflow' module ForemanTasks def self.dynflow @dynflow ||= ForemanTasks::Dynflow.new end def self.trigger(action, *args, &block) dynflow.world.trigger action, *args, &block end def self.async_task(action, *args, &block) run = trigger(action, *args, &block) ForemanTasks::Task::DynflowTask.find_by_external_id(run.id) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
foreman-tasks-0.1.3 | lib/foreman_tasks.rb |
foreman-tasks-0.1.2 | lib/foreman_tasks.rb |
foreman-tasks-0.1.1 | lib/foreman_tasks.rb |
foreman-tasks-0.1.0 | lib/foreman_tasks.rb |