Class: Kitsune::Kit::ServiceCompose
- Inherits:
-
Object
- Object
- Kitsune::Kit::ServiceCompose
- Defined in:
- lib/kitsune/kit/service_compose.rb
Instance Method Summary collapse
- #content ⇒ Object
- #env_content(password) ⇒ Object
-
#initialize(config:, type:, service:) ⇒ ServiceCompose
constructor
A new instance of ServiceCompose.
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
#content ⇒ Object
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" |