minos 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f630873c2560f98da29ac9c8c9420c72adad87a77ab5d65006ce5a00776e659
4
- data.tar.gz: f77a12ea0ac0ae580fcc517c212dbe9575706560cd9de17c45a22b483dc09115
3
+ metadata.gz: c0142872ab6be8e8cee71cdbe2705bb6df2569c758d41d97ec6849787d7293c2
4
+ data.tar.gz: 8815a55df821773940a81d5fd58a96e0d03ac2be5e0bd47e702558683d4add8b
5
5
  SHA512:
6
- metadata.gz: 649feef05d36621721f580a46999fb05c552c421bfb148bd0af78a41a8dbcd9f19e1fb47d656d7729a55c2cdf55a7542b09443d8fb505724cdb51dd4b4de0fde
7
- data.tar.gz: bd7001c03331f8a45a05074c897cd5640178bda3a621656bc7c8cee9e897a9f21479d18a9d145ddd5f6e28265c1f061a13b07bbe974a0af720133ea95ec71fbe
6
+ metadata.gz: 7e56c8ad28f97066253cd00fd2a9245955df2bbd061779560bd053f64c5fa0cf7d9c6f360608a3f788fea14b85bc6085c2ba44b6a6cedc06e589945402b14c18
7
+ data.tar.gz: 8e69df547ee98a68c203a64eee4bd9ac596bd3206d79941e18b44ff85d64930cd418ea026259fd457d32bd84d66a8849c07da69e7f71268590d4ef336fb89bf7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minos (0.3.6)
4
+ minos (0.3.7)
5
5
  activesupport (~> 5.2)
6
6
  dry-matcher (~> 0.7)
7
7
  dry-monads (~> 1.2)
@@ -43,9 +43,15 @@ module Minos
43
43
  def docker_pull(i, cache)
44
44
  Task[:io, &-> {
45
45
  color = select_color(i)
46
- print "Pulling #{cache}...", color: color
47
- if run "docker inspect #{cache} -f '{{json .ID}}' > /dev/null 2>&1 || docker pull #{cache} 2> /dev/null", color: color
48
- print "Using #{cache}", color: color
46
+ if run "docker inspect #{cache} -f '{{json .ID}}' > /dev/null 2>&1"
47
+ print "Using local #{cache}", color: color
48
+ else
49
+ print "Trying to pull #{cache}...", color: color
50
+ if run "docker pull #{cache} 2> /dev/null", color: color
51
+ print "Using local #{cache}", color: color
52
+ else
53
+ print "Enable to pull #{cache}", color: color
54
+ end
49
55
  end
50
56
 
51
57
  return Success()
@@ -111,7 +117,7 @@ module Minos
111
117
  end
112
118
 
113
119
  def select_color(i)
114
- colors[i % colors.count + 1]
120
+ colors[i % colors.count]
115
121
  end
116
122
 
117
123
  def colors
@@ -1,3 +1,3 @@
1
1
  module Minos
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-Louis Gottfrois