Class: Actions::Foreman::Puppetclass::Import
- Inherits:
-
EntryAction
- Object
- Base
- EntryAction
- Actions::Foreman::Puppetclass::Import
show all
- Defined in:
- app/lib/actions/foreman/puppetclass/import.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from EntryAction
#action_subject, all_action_names, #delay, #drop_all_locks!, #humanized_input, serializer_class
#exclusive_lock!, #link!
#serialize_args
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
|