docker-build 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8854e34c73ebdcce2a483d38184f42d43ec4cde2
4
- data.tar.gz: 8db9e5273a04e3b4333f14f750997b3ac9319105
3
+ metadata.gz: ef59555d9cc48b2e4185c487108139f3ec549b0d
4
+ data.tar.gz: 793efb088a4ec5b8875b2e994e733643917acfaa
5
5
  SHA512:
6
- metadata.gz: a2a31f791aefd8c1aa1918c64ea448dbc574d7d77fb6693323d63dc8c82e876a4ed58f6bdae53ab19946948b2e116af8072bde7301735509f643ba0ef427bb71
7
- data.tar.gz: 5c2efb6309bb4471a622023332df7d92bd0f22b517e8b395901c7ed3bb2ce097cc9f96d248cd307f40cbc180040662301422caa507e9000ef13ce7cc17afacfc
6
+ metadata.gz: fb115b77986f8db82e61d456847dc02174f80e4c34151424b6dde65cb2ac514a0a8196d55c2e896e2ee991bc81792456e9e07b6c70c2ba7cf71c20ff34000ade
7
+ data.tar.gz: 8b005b0b830dc53b293a93c125224686c05356ba9a7791805e76f7c0d578dfc1ff5376df3828c35551ffbf718b9e2e5ba3d995e6236c7f7e0f669afd13f329ea
data/lib/docker-build.rb CHANGED
@@ -22,9 +22,9 @@ class DockerBuild
22
22
 
23
23
  fail 'Docker failed to build the container!' unless output_match
24
24
 
25
- puts output_match[1]
25
+ puts output_match[2]
26
26
 
27
- return output_match[1]
27
+ return output_match[2]
28
28
  end
29
29
 
30
30
  end
@@ -3,6 +3,14 @@ class Symfony
3
3
  def self.doctrine
4
4
  Doctrine
5
5
  end
6
+
7
+ def self.run_command(data_container, command)
8
+ docker_command = "docker run --rm --volumes-from #{data_container} vjftw/php-cli app/console --ansi #{command}"
9
+
10
+ puts docker_command
11
+
12
+ return `command`
13
+ end
6
14
  end
7
15
 
8
16
  require 'symfony/doctrine'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - VJ Patel