Class: Actions::Foreman::Puppetclass::Import
- Inherits:
-
EntryAction
- Object
- Dynflow::Action
- Base
- EntryAction
- Actions::Foreman::Puppetclass::Import
- Defined in:
- app/lib/actions/foreman/puppetclass/import.rb
Class Method Summary collapse
-
.cleanup_after ⇒ Object
default value for cleaning up the tasks, it can be overriden by settings.
Instance Method Summary collapse
Methods inherited from EntryAction
#action_subject, all_action_names, #delay, #drop_all_locks!, #humanized_input, serializer_class
Methods included from Helpers::Lock
#exclusive_lock!, #link!, #lock!
Methods included from Helpers::ArgsSerialization
Methods inherited from Base
#already_running?, #humanized_errors, #humanized_input, #humanized_output, #notify_paused, #serializer_class, #task, #task_input, #task_output
Methods included from TaskSynchronization
included, #sync_execution_plan_to_task
Methods included from Helpers::LifecycleLogging
included, #log_task_state_change
Class Method Details
.cleanup_after ⇒ Object
default value for cleaning up the tasks, it can be overriden by settings
22 23 24 |
# File 'app/lib/actions/foreman/puppetclass/import.rb', line 22 def self.cleanup_after '30d' end |
Instance Method Details
#humanized_name ⇒ Object
17 18 19 |
# File 'app/lib/actions/foreman/puppetclass/import.rb', line 17 def humanized_name _('Import Puppet classes') end |
#rescue_strategy ⇒ Object
13 14 15 |
# File 'app/lib/actions/foreman/puppetclass/import.rb', line 13 def rescue_strategy ::Dynflow::Action::Rescue::Skip end |
#resource_locks ⇒ Object
5 6 7 |
# File 'app/lib/actions/foreman/puppetclass/import.rb', line 5 def resource_locks :import_puppetclasses end |
#run ⇒ Object
9 10 11 |
# File 'app/lib/actions/foreman/puppetclass/import.rb', line 9 def run output[:results] = ::PuppetClassImporter.new.obsolete_and_new(input[:changed]) end |