Module: ProjectAPICompatibility

Extended by:
ActiveSupport::Concern
Included in:
Project
Defined in:
app/models/concerns/project_api_compatibility.rb

Overview

Add methods used by the projects API

Instance Method Summary collapse

Instance Method Details

#auto_devops_deploy_strategy=(value) ⇒ Object



15
16
17
# File 'app/models/concerns/project_api_compatibility.rb', line 15

def auto_devops_deploy_strategy=(value)
  (auto_devops || build_auto_devops).deploy_strategy = value
end

#auto_devops_enabled=(value) ⇒ Object



11
12
13
# File 'app/models/concerns/project_api_compatibility.rb', line 11

def auto_devops_enabled=(value)
  (auto_devops || build_auto_devops).enabled = value
end

#build_git_strategy=(value) ⇒ Object



7
8
9
# File 'app/models/concerns/project_api_compatibility.rb', line 7

def build_git_strategy=(value)
  write_attribute(:build_allow_git_fetch, value == 'fetch')
end