Class: Matrixeval::Context::BuildDockerComposeExtend

Inherits:
Object
  • Object
show all
Defined in:
lib/matrixeval/context/build_docker_compose_extend.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ BuildDockerComposeExtend

Returns a new instance of BuildDockerComposeExtend.



15
16
17
# File 'lib/matrixeval/context/build_docker_compose_extend.rb', line 15

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



13
14
15
# File 'lib/matrixeval/context/build_docker_compose_extend.rb', line 13

def context
  @context
end

Class Method Details

.call(context) ⇒ Object



8
9
10
# File 'lib/matrixeval/context/build_docker_compose_extend.rb', line 8

def call(context)
  new(context).call
end

Instance Method Details

#callObject



23
24
25
# File 'lib/matrixeval/context/build_docker_compose_extend.rb', line 23

def call
  DockerCompose::Extend.new(docker_compose_extend)
end

#matrix_combination_idObject



19
20
21
# File 'lib/matrixeval/context/build_docker_compose_extend.rb', line 19

def matrix_combination_id
  context.id
end