fidoci 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fidoci/env.rb +4 -0
- data/lib/fidoci/main.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c0a4c8ac5bb0ee9815e811ee7ac2008b5151522
|
4
|
+
data.tar.gz: 3e5346e307739072c6d5033637486a36e30bc035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 049af0b54f5a8103fd900643ad3a2a0e34be8ea587ac6bc464dc1370b18e04939acb77deef10e515a46323ce9d41e562921d92157c9ad8a46fa38224bacd0199
|
7
|
+
data.tar.gz: 1d26968117084c495dc55b1c2613a5397812c9ec4100e4f5b3a5e1f66f6949a8555eff0bebc59226cbf30d846c13d1a79272e38f607e0332d0d6b90a6c522892
|
data/lib/fidoci/env.rb
CHANGED
data/lib/fidoci/main.rb
CHANGED
@@ -42,7 +42,7 @@ module Fidoci
|
|
42
42
|
|
43
43
|
(config.keys - ['image']).each { |name|
|
44
44
|
env = env(name)
|
45
|
-
|
45
|
+
env.clean_image!
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -51,14 +51,16 @@ module Fidoci
|
|
51
51
|
# do_clean - if true, will do clean after build (whether successful or not)
|
52
52
|
def build(tag, do_clean = false)
|
53
53
|
test_env = env(:test)
|
54
|
+
test_env.clean_image!
|
54
55
|
success = test_env.commands
|
55
56
|
|
56
57
|
if success
|
57
58
|
system "docker tag #{test_env.image_name} #{repository_name}:#{tag}"
|
58
59
|
end
|
59
60
|
|
60
|
-
clean if do_clean
|
61
61
|
success
|
62
|
+
ensure
|
63
|
+
clean if do_clean
|
62
64
|
end
|
63
65
|
end
|
64
66
|
end
|