Class: Actions::Foreman::Architecture::Destroy
- Inherits:
-
EntryAction
- Object
- Dynflow::Action
- Base
- EntryAction
- Actions::Foreman::Architecture::Destroy
show all
- Defined in:
- app/lib/actions/foreman/architecture/destroy.rb
Instance Method Summary
collapse
Methods inherited from EntryAction
#action_subject, all_action_names, #delay, #resource_locks, serializer_class
#exclusive_lock!, #link!, #lock!
#serialize_args
Methods inherited from Base
#already_running?, #humanized_errors, #humanized_output, #serializer_class, #task, #task_input, #task_output
Instance Method Details
#cli_example ⇒ Object
18
19
20
21
22
23
|
# File 'app/lib/actions/foreman/architecture/destroy.rb', line 18
def cli_example
return unless input[:architecture]
<<-EXAMPLE
hammer architecture delete --id '#{task_input[:architecture][:id]}'
EXAMPLE
end
|
14
15
16
|
# File 'app/lib/actions/foreman/architecture/destroy.rb', line 14
def humanized_input
input[:architecture] && input[:architecture][:name]
end
|
#humanized_name ⇒ Object
10
11
12
|
# File 'app/lib/actions/foreman/architecture/destroy.rb', line 10
def humanized_name
_("Delete architecture")
end
|
#plan(architecture) ⇒ Object
6
7
8
|
# File 'app/lib/actions/foreman/architecture/destroy.rb', line 6
def plan(architecture)
action_subject(architecture)
end
|