Class: Containers::StepsController

Inherits:
ApplicationController
  • Object
show all
Includes:
ForemanDocker::FindContainer, Wicked::Wizard
Defined in:
app/controllers/containers/steps_controller.rb

Instance Method Summary collapse

Methods included from ForemanDocker::FindContainer

#allowed_resources, #find_container

Instance Method Details

#showObject



11
12
13
14
# File 'app/controllers/containers/steps_controller.rb', line 11

def show
  @container_resources = allowed_resources if step == :preliminary
  render_wizard
end

#updateObject



16
17
18
19
20
21
22
# File 'app/controllers/containers/steps_controller.rb', line 16

def update
  if step == wizard_steps.last
    create_container
  else
    render_wizard @state
  end
end