Class: DC::Project
- Inherits:
-
Object
- Object
- DC::Project
- Defined in:
- lib/dc.rb
Instance Attribute Summary collapse
-
#containers ⇒ Object
readonly
Returns the value of attribute containers.
Instance Method Summary collapse
-
#initialize(directory: '.', docker_socket: 'tcp://127.0.0.1:2375') ⇒ Project
constructor
A new instance of Project.
- #run ⇒ Object
Constructor Details
#initialize(directory: '.', docker_socket: 'tcp://127.0.0.1:2375') ⇒ Project
Returns a new instance of Project.
136 137 138 139 140 141 142 |
# File 'lib/dc.rb', line 136 def initialize directory: '.', docker_socket: 'tcp://127.0.0.1:2375' check_if_docker_is_available_at docker_socket @directory = File. directory @images_directory = "#{@directory}/.docker/images" @services_file = "#{@directory}/.docker/services.yml" end |
Instance Attribute Details
#containers ⇒ Object (readonly)
Returns the value of attribute containers.
144 145 146 |
# File 'lib/dc.rb', line 144 def containers @containers end |
Instance Method Details
#run ⇒ Object
146 147 148 149 |
# File 'lib/dc.rb', line 146 def run prepare_images prepare_services end |