egg 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/egg/cli.rb +7 -0
- data/lib/egg/configuration.rb +11 -11
- data/lib/egg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeb68843b1b0dd6ce846602dc61da5eb8e50350a
|
4
|
+
data.tar.gz: af38d7f3d7f13f74ae84d6737e8d80707f3f1cb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd26c05fc6fed07760c714cec7c1a86903f8a3ea635191333c867c07a8e116b46193d5524d963b33aa410ef37fe730a29d28e1383acbcf9a74d99105972922c
|
7
|
+
data.tar.gz: ab1fe7a824eb35090b12165fb0349eb9fc7f0cda14fb23cd706c120a6b441b4f5c3e768cc911d2e7c916e7af9660154b3f337c4fff01c9c4d2d169bcd4c8dd77
|
data/Gemfile.lock
CHANGED
data/lib/egg/cli.rb
CHANGED
@@ -35,6 +35,13 @@ module Egg
|
|
35
35
|
config.run_setup
|
36
36
|
end
|
37
37
|
|
38
|
+
desc "build", "Just build the docker containers"
|
39
|
+
def build
|
40
|
+
config = Configuration.load "./egg_config.rb"
|
41
|
+
config.write_docker_files
|
42
|
+
config.docker_pull_build
|
43
|
+
end
|
44
|
+
|
38
45
|
private
|
39
46
|
|
40
47
|
def write_git_ignorance
|
data/lib/egg/configuration.rb
CHANGED
@@ -64,12 +64,13 @@ module Egg
|
|
64
64
|
run_after_startup
|
65
65
|
end
|
66
66
|
|
67
|
-
|
67
|
+
def write_docker_files
|
68
|
+
File.write("Dockerfile", dockerfile.render) if dockerfile
|
68
69
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
dockerignore = Templates[".dockerignore"].result(binding)
|
71
|
+
File.write(".dockerignore", dockerignore)
|
72
|
+
|
73
|
+
File.write("docker-compose.yml", docker_compose.to_yaml)
|
73
74
|
end
|
74
75
|
|
75
76
|
def docker_pull_build
|
@@ -77,13 +78,12 @@ module Egg
|
|
77
78
|
system("docker-compose build") || raise($CHILD_STATUS)
|
78
79
|
end
|
79
80
|
|
80
|
-
|
81
|
-
File.write("Dockerfile", dockerfile.render) if dockerfile
|
82
|
-
|
83
|
-
dockerignore = Templates[".dockerignore"].result(binding)
|
84
|
-
File.write(".dockerignore", dockerignore)
|
81
|
+
private
|
85
82
|
|
86
|
-
|
83
|
+
def run_after_startup
|
84
|
+
return unless @after_startup
|
85
|
+
print "Running after-startup block\n"
|
86
|
+
@after_startup.call
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
data/lib/egg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Thuringer
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.
|
180
|
+
rubygems_version: 2.5.2
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Egg helps you develop with Docker!
|