Class: ServiceConfig

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/mkit/app/model/service_config.rb

Class Method Summary collapse

Class Method Details

.create(service:, key:, value:, ctype: MKIt::CType::ENVIRONMENT) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/mkit/app/model/service_config.rb', line 6

def self.create(service:, key:, value:, ctype: MKIt::CType::ENVIRONMENT)
  ServiceConfig.new(
    service: service,
    key: key,
    value: value,
    version: service.version,
    ctype: ctype
  )
end