Class: DockerBuild
- Inherits:
-
Object
- Object
- DockerBuild
- Defined in:
- lib/docker-build.rb
Class Method Summary collapse
Class Method Details
.composer ⇒ Object
3 4 5 |
# File 'lib/docker-build.rb', line 3 def self.composer Composer end |
.data_container(docker_file_path) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/docker-build.rb', line 15 def self.data_container(docker_file_path) command = "docker build #{docker_file_path}" output = `#{command}` puts output output_match = /(Successfully built )(.*)/.match(output) fail 'Docker failed to build the container!' unless output_match puts output_match[2] return output_match[2] end |
.google ⇒ Object
11 12 13 |
# File 'lib/docker-build.rb', line 11 def self.google Google end |
.symfony ⇒ Object
7 8 9 |
# File 'lib/docker-build.rb', line 7 def self.symfony Symfony end |