Class: Containers::StepsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Containers::StepsController
show all
- Includes:
- ForemanDocker::FindContainer, Wicked::Wizard
- Defined in:
- app/controllers/containers/steps_controller.rb
Instance Method Summary
collapse
#allowed_resources, #find_container
Instance Method Details
#show ⇒ Object
12
13
14
15
|
# File 'app/controllers/containers/steps_controller.rb', line 12
def show
@container_resources = allowed_resources if step == :preliminary
render_wizard
end
|
#update ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
|
# File 'app/controllers/containers/steps_controller.rb', line 17
def update
if step == wizard_steps.last
if process_resource!(@state).nil?
render_wizard @state
else
params[:start_on_create] ? create_container : create_container(false)
end
else
render_wizard @state
end
end
|