deploy-context 0.11.42 → 0.11.44

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
  SHA256:
3
- metadata.gz: 00bd29e3d563efb04b52e103d2615ff71f64811ea7d12f23faba27c1d8d4f420
4
- data.tar.gz: 40af8b08f8176c023cec6aa12bf246e4e898f08f5726427fcfaade84490a2e67
3
+ metadata.gz: 6e7eee81e5f8b88a95bc7973ad655e0913b3df065615c13a8482f401d63101fc
4
+ data.tar.gz: 187f1fb8541a7ad774546d03969e1c67b70a2da330562899ef9ee2e39f9853e3
5
5
  SHA512:
6
- metadata.gz: 4186eab6856c4a380a117c66931868117f5cbaa2876b511b0f5be8fdcd1355434e7464900c4408e74af40a460bbe6b1ef96a08d0561e7426491f072a8bb8e355
7
- data.tar.gz: 76c6c66e3314fb10ac94a89085a866ed3bc1232d400684dcb19129fb01381caafd8d4b35233a046edd18684a9ca074e2aeef70f743e5f0f822ce7360e14b72bc
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.wait_release_available
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
@@ -35,5 +35,11 @@ module Context
35
35
  git_bump(context, 'minor')
36
36
  git_commit(context)
37
37
  end
38
+
39
+ def git_update_available?(context)
40
+ git_build(context)
41
+ git ['log', "v#{context.version}"]
42
+ # git ['ls-remote origin', "v#{context.version}"]
43
+ end
38
44
  end
39
45
  end
@@ -38,20 +38,24 @@ module Context
38
38
  end
39
39
 
40
40
  def ruby_cycle(context)
41
- context.clean
42
- context.build
43
- context.commit
44
- context.patch_bump
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
- # patch_reset(context)
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 "newer version not installed for #{context.context_name} and version #{context.version}"
54
- exit 1
58
+ puts "No update available"
55
59
  end
56
60
  end
57
61
  end
@@ -74,7 +74,14 @@ module Context
74
74
  end
75
75
 
76
76
  def wait_until_release_available
77
- wait_until_release_available unless ruby_check_if_available_public(self)
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy-context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.42
4
+ version: 0.11.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file