Class: Projects::DeployTokens::DestroyService

Inherits:
BaseService
  • Object
show all
Includes:
DeployTokenMethods
Defined in:
app/services/projects/deploy_tokens/destroy_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from DeployTokenMethods

#create_deploy_token_for, #create_deploy_token_payload_for, #destroy_deploy_token

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from BaseService

Instance Method Details

#executeObject



8
9
10
# File 'app/services/projects/deploy_tokens/destroy_service.rb', line 8

def execute
  destroy_deploy_token(@project, params)
end