Sha256: af70af9942dfbf5e58303ea330b3ebd219b9dc92c00323c96b1599f1a9d09d7a
Contents?: true
Size: 634 Bytes
Versions: 16
Compression:
Stored size: 634 Bytes
Contents
module ForemanTasks module Concerns module EnvironmentsExtension extend ActiveSupport::Concern included do alias_method_chain :obsolete_and_new, :dynflow end def obsolete_and_new_with_dynflow task = ForemanTasks.async_task(::Actions::Foreman::Puppetclass::Import, params) notice _("Added import task to queue, it will be run shortly") rescue ::Foreman::Exception => e error _("Failed to add task to queue: %s") % e.to_s ensure redirect_to :controller => controller_path end end end end
Version data entries
16 entries across 16 versions & 1 rubygems