deploy-context 0.11.42 → 0.11.44
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/features/step_definitions/deploy-context.rb +3 -3
- data/lib/deploy-context/deploy/git.rb +6 -0
- data/lib/deploy-context/deploy/ruby.rb +16 -12
- data/lib/deploy-context.rb +8 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e7eee81e5f8b88a95bc7973ad655e0913b3df065615c13a8482f401d63101fc
|
|
4
|
+
data.tar.gz: 187f1fb8541a7ad774546d03969e1c67b70a2da330562899ef9ee2e39f9853e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60a334f9935d9bfc19f907c8f44d59d593ea754db835283526df2aae3945853b5b0fd5353a1867039d23d8321bf2c8706c5df05afd9c60f6982b7f407b8189fc
|
|
7
|
+
data.tar.gz: '0453581a5e9a1fbb6a5a8706fa567344d76e5c1359299b5ea18feef36bd1129c8c28e3cc9c861d0f806aa2038c01cca4ebaa4c85f6562162b2bfc2036c126ecf'
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Étantdonnéque('deploy-context est présent localement') do
|
|
2
|
+
deployer.present_localy?
|
|
2
3
|
end
|
|
3
4
|
|
|
4
5
|
Étantdonnéque('deploy-context est présent au public') do
|
|
6
|
+
deployer.wait_until_release_available
|
|
5
7
|
end
|
|
6
8
|
|
|
7
9
|
Étantdonnéque('deploy-context est tester avec succès') do
|
|
@@ -18,9 +20,7 @@ Alors('publié deploy-context') do
|
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
Alors('attendre que deploy-context soit disponible au public') do
|
|
21
|
-
deployer.
|
|
22
|
-
puts "Waiting a minute before installing"
|
|
23
|
-
sleep(60)
|
|
23
|
+
deployer.wait_until_release_available
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
Alors('installer deploy-context') do
|
|
@@ -38,20 +38,24 @@ module Context
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def ruby_cycle(context)
|
|
41
|
-
context.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
context.release
|
|
46
|
-
context.wait_until_release_available
|
|
47
|
-
context.install
|
|
48
|
-
if context.test_context_successful?
|
|
49
|
-
puts "newer version installed successfully for #{context.context_name} and version #{context.version}"
|
|
41
|
+
if context.new_update_available?
|
|
42
|
+
context.clean
|
|
43
|
+
context.build
|
|
44
|
+
context.commit
|
|
50
45
|
context.patch_bump
|
|
51
|
-
|
|
46
|
+
context.release
|
|
47
|
+
context.wait_until_release_available
|
|
48
|
+
context.install
|
|
49
|
+
if context.test_context_successful?
|
|
50
|
+
puts "newer version installed successfully for #{context.context_name} and version #{context.version}"
|
|
51
|
+
context.patch_bump
|
|
52
|
+
# patch_reset(context)
|
|
53
|
+
else
|
|
54
|
+
puts "newer version not installed for #{context.context_name} and version #{context.version}"
|
|
55
|
+
exit 1
|
|
56
|
+
end
|
|
52
57
|
else
|
|
53
|
-
puts "
|
|
54
|
-
exit 1
|
|
58
|
+
puts "No update available"
|
|
55
59
|
end
|
|
56
60
|
end
|
|
57
61
|
end
|
data/lib/deploy-context.rb
CHANGED
|
@@ -74,7 +74,14 @@ module Context
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
def wait_until_release_available
|
|
77
|
-
wait_until_release_available unless
|
|
77
|
+
wait_until_release_available unless is_present_publicaly?
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def is_present_publicaly?
|
|
81
|
+
ruby_check_if_available_public(self)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def new_update_available?
|
|
78
85
|
end
|
|
79
86
|
end
|
|
80
87
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|