Class: Matrixeval::DockerCompose::File
- Inherits:
-
Object
- Object
- Matrixeval::DockerCompose::File
- Defined in:
- lib/matrixeval/docker_compose/file.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Class Method Summary collapse
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(context) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(context) ⇒ File
Returns a new instance of File.
23 24 25 |
# File 'lib/matrixeval/docker_compose/file.rb', line 23 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
21 22 23 |
# File 'lib/matrixeval/docker_compose/file.rb', line 21 def context @context end |
Class Method Details
Instance Method Details
#create ⇒ Object
27 28 29 30 31 |
# File 'lib/matrixeval/docker_compose/file.rb', line 27 def create ::File.open(docker_compose_file_path, 'w+') do |file| file.puts build_content end end |