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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca20a1cbc10132511c5a11663c3335c14e2c840b
4
- data.tar.gz: d3a274cd115c83fdb5c80b9d2dc7e950c56a54d9
3
+ metadata.gz: eeb68843b1b0dd6ce846602dc61da5eb8e50350a
4
+ data.tar.gz: af38d7f3d7f13f74ae84d6737e8d80707f3f1cb0
5
5
  SHA512:
6
- metadata.gz: 52e31967de045df747c388b3e8ef31a5d731e12e4c53963121228a95d92070785503522ee81892d07fe4e30e697473b83869ccd2e5dfe2f559dc59928e670edb
7
- data.tar.gz: db616dfc233440b0b04ed993a48763f61369bdeccaf93215b8ef80f0c04111dac768a3ab3ec43420996b19a74d6678bf383c09ff5ec8d8c5b0a3caaeafa6ac1e
6
+ metadata.gz: dcd26c05fc6fed07760c714cec7c1a86903f8a3ea635191333c867c07a8e116b46193d5524d963b33aa410ef37fe730a29d28e1383acbcf9a74d99105972922c
7
+ data.tar.gz: ab1fe7a824eb35090b12165fb0349eb9fc7f0cda14fb23cd706c120a6b441b4f5c3e768cc911d2e7c916e7af9660154b3f337c4fff01c9c4d2d169bcd4c8dd77
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- egg (0.3.1)
4
+ egg (0.3.3)
5
5
  thor (~> 0.19.4)
6
6
 
7
7
  GEM
@@ -87,4 +87,4 @@ DEPENDENCIES
87
87
  rspec_junit_formatter (~> 0.2.3)
88
88
 
89
89
  BUNDLED WITH
90
- 1.15.1
90
+ 1.15.3
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
@@ -64,12 +64,13 @@ module Egg
64
64
  run_after_startup
65
65
  end
66
66
 
67
- private
67
+ def write_docker_files
68
+ File.write("Dockerfile", dockerfile.render) if dockerfile
68
69
 
69
- def run_after_startup
70
- return unless @after_startup
71
- print "Running after-startup block\n"
72
- @after_startup.call
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
- def write_docker_files
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
- File.write("docker-compose.yml", docker_compose.to_yaml)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Egg
4
- VERSION = "0.3.2".freeze
4
+ VERSION = "0.3.3".freeze
5
5
  end
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.2
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.6.11
180
+ rubygems_version: 2.5.2
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Egg helps you develop with Docker!