Class: Security::CiConfiguration::SecretDetectionCreateService

Inherits:
BaseCreateService show all
Defined in:
app/services/security/ci_configuration/secret_detection_create_service.rb

Instance Attribute Summary collapse

Attributes inherited from BaseCreateService

#branch_name, #current_user, #project

Instance Method Summary collapse

Methods inherited from BaseCreateService

#execute

Constructor Details

#initialize(project, current_user, params = {}, commit_on_default: false) ⇒ SecretDetectionCreateService

Returns a new instance of SecretDetectionCreateService.



8
9
10
11
12
13
# File 'app/services/security/ci_configuration/secret_detection_create_service.rb', line 8

def initialize(project, current_user, params = {}, commit_on_default: false)
  super(project, current_user)
  @params = params
  @commit_on_default = commit_on_default
  @branch_name = project.default_branch if @commit_on_default
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'app/services/security/ci_configuration/secret_detection_create_service.rb', line 6

def params
  @params
end