class Matrixeval::Context::BuildDockerComposeExtend

Attributes

context[R]

Public Class Methods

call(context) click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 8
def call(context)
  new(context).call
end
new(context) click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 15
def initialize(context)
  @context = context
end

Public Instance Methods

call() click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 23
def call
  DockerCompose::Extend.new(docker_compose_extend)
end
matrix_combination_id() click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 19
def matrix_combination_id
  context.id
end

Private Instance Methods

docker_compose_extend() click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 29
def docker_compose_extend
  JSON.parse(render_erb)
end
render_erb() click to toggle source
# File lib/matrixeval/context/build_docker_compose_extend.rb, line 33
def render_erb
  ERB.new(
    Config.docker_compose_extend_raw.content
  ).result(binding)
end