Class: Kitsune::Kit::ServiceCompose

Inherits:
Object
  • Object
show all
Defined in:
lib/kitsune/kit/service_compose.rb

Instance Method Summary collapse

Constructor Details

#initialize(config:, type:, service:) ⇒ ServiceCompose

Returns a new instance of ServiceCompose.



9
10
11
12
13
# File 'lib/kitsune/kit/service_compose.rb', line 9

def initialize(config:, type:, service:)
  @config = config
  @type = type
  @service = service
end

Instance Method Details

#contentObject



15
# File 'lib/kitsune/kit/service_compose.rb', line 15

def content = YAML.dump(document)

#env_content(password) ⇒ Object



16
# File 'lib/kitsune/kit/service_compose.rb', line 16

def env_content(password) = "#{@service.password_env}=#{JSON.generate(password)}\n"