Class: Kcu::RestartDeploymentAction

Inherits:
Object
  • Object
show all
Extended by:
LightService::Organizer
Defined in:
lib/kcu/actions/restart_deployment_action.rb

Class Method Summary collapse

Class Method Details

.call(resource) ⇒ Object



6
7
8
9
10
11
# File 'lib/kcu/actions/restart_deployment_action.rb', line 6

def self.call(resource)
  ctx = with(resource: resource).reduce(
    GetResourceNamespaceAndName,
    Deployments::RestartDeployment,
  )
end