Class: UffizziCore::Api::Cli::V1::Projects::Deployments::EventsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/uffizzi_core/api/cli/v1/projects/deployments/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

Get the events associated with deployment



22
23
24
25
26
27
28
# File 'app/controllers/uffizzi_core/api/cli/v1/projects/deployments/events_controller.rb', line 22

def index
  response = UffizziCore::ControllerService.fetch_deployment_events(resource_deployment)

  events = { events: response }

  render json: events
end