Sha256: 2b49101cbae77ec511967c6fdedbafa639963d000ce71c51e1f00063294284ac

Contents?: true

Size: 617 Bytes

Versions: 15

Compression:

Stored size: 617 Bytes

Contents

module Actions
  module Foreman
    module Puppetclass
      class Import < Actions::EntryAction
        def resource_locks
          :import_puppetclasses
        end

        def run
          output[:results] = ::PuppetClassImporter.new.obsolete_and_new(input[:changed])
        end

        def rescue_strategy
          ::Dynflow::Action::Rescue::Skip
        end

        def humanized_name
          _("Import Puppet classes")
        end

        # default value for cleaning up the tasks, it can be overriden by settings
        def self.cleanup_after
          '30d'
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman-tasks-0.8.6 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.5 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.4 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.3 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.2 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.1 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.8.0 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.20 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.19 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.18 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.17 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.16 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.15 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.14 app/lib/actions/foreman/puppetclass/import.rb
foreman-tasks-0.7.13 app/lib/actions/foreman/puppetclass/import.rb