deploy-context 1.0.0 → 2.0.0.1.gae09dc8
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/Rakefile +1 -0
- data/features/code_update.feature +13 -0
- data/features/step_definitions/deploy-context.rb +32 -13
- data/features/update_deployer.feature +10 -0
- data/features/updated_git.feature +10 -0
- data/lib/deploy-context/context/deploy.rb +15 -2
- data/lib/deploy-context.rb +4 -0
- data.tar.gz.sig +0 -0
- metadata +6 -4
- metadata.gz.sig +0 -0
- data/features/deploy-context.feature +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b474a852bb9f98b16da64162d327374f99b6f29632582ca5c9ae53e368be685
|
4
|
+
data.tar.gz: 06c16becda10958a50a2dd5ab92b860c5799bbaaab2da3f71b6b54b4ed84f216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8011cf32cc35cc134274c61cd019ab82b92dc142ff4bf7ce5b935d42f9248e9224849952ba81d3e9d21347bd7b98c4aff31af4684bbcc4efb6bb0976b9b4c4bf
|
7
|
+
data.tar.gz: b4f04392f952da62a4faabbad1b71c874bf64756363d2bb9eee63093fc35e2bc06449b6ac8c873adaa071ff0351d762e871cdf337c142d698880e6252ed4466d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
# language: fr
|
2
|
+
@fr @deploycontext
|
3
|
+
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
+
|
5
|
+
Plan du Scénario: Démarrer un simple cycle de projet
|
6
|
+
Étant donné que le projet <project_name> à du code à updater
|
7
|
+
# Alors bumper la version du patch de <project_name>
|
8
|
+
# Et déployer le projet <project_name>
|
9
|
+
# Et tester le projet <project_name>
|
10
|
+
|
11
|
+
Exemples:
|
12
|
+
| project_name |
|
13
|
+
| deploy-context |
|
@@ -1,23 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Dir.chdir deployer.context_folder
|
4
|
-
else
|
5
|
-
Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
|
6
|
-
end
|
1
|
+
def context_exec(command)
|
2
|
+
system(command.join(' '))
|
7
3
|
end
|
8
4
|
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
# Étantdonnéque('le projet {word} à une dernière version de disponible dans git') do |project_name|
|
6
|
+
# context_exec [project_name, 'once']
|
7
|
+
|
8
|
+
# if project_name == deployer.context_name
|
9
|
+
# Dir.chdir deployer.context_folder
|
10
|
+
# else
|
11
|
+
# Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
|
12
|
+
# end
|
13
|
+
# end
|
12
14
|
|
13
|
-
Alors('
|
14
|
-
|
15
|
+
Alors('démarrer un simple cycle de {word}') do |project_name|
|
16
|
+
context_exec [project_name, 'once'] || abort!('Issue with life cycle')
|
15
17
|
end
|
16
18
|
|
17
19
|
Alors('déployer le projet {word}') do |project_name|
|
18
|
-
|
20
|
+
context_exec [project_name, 'release'] || abort!('Issue with deploy steps')
|
19
21
|
end
|
20
22
|
|
21
23
|
Alors('tester le projet {word}') do |project_name|
|
22
|
-
|
24
|
+
context_exec [project_name, 'test'] || abort!('Issue with testing steps')
|
25
|
+
end
|
26
|
+
|
27
|
+
Étantdonnéque('le projet {word} à du code à updater') do |project_name|
|
28
|
+
context_exec [project_name, 'check_code_to_update'] || abort!('Issue to check updated code')
|
29
|
+
end
|
30
|
+
|
31
|
+
Alors('bumper la version du patch de {word}') do |project_name|
|
32
|
+
context_exec [project_name, 'bump'] || abort!('Issue with bumping version')
|
33
|
+
end
|
34
|
+
|
35
|
+
Étantdonnéque('le projet {word} à la bonne version d\'installer') do |project_name|
|
36
|
+
context_exec [project_name, 'check_installed_version'] || abort!('Issue to check installed version')
|
23
37
|
end
|
38
|
+
|
39
|
+
Étantdonnéque('le projet {word} à une nouvelle version de disponible') do |project_name|
|
40
|
+
context_exec [project_name, 'check_new_version'] || abort!('Issue to check newer version available')
|
41
|
+
end
|
42
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# language: fr
|
2
|
+
@fr @deploycontext
|
3
|
+
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
+
|
5
|
+
Plan du Scénario: Tester le project deploy-context
|
6
|
+
Étant donné que le projet <project_name> à la bonne version d'installer
|
7
|
+
|
8
|
+
Exemples:
|
9
|
+
| project_name |
|
10
|
+
| deploy-context |
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# language: fr
|
2
|
+
@fr @deploycontext
|
3
|
+
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
+
|
5
|
+
Plan du Scénario: Tester le project deploy-context
|
6
|
+
Étant donné que le projet <project_name> à une nouvelle version de disponible
|
7
|
+
|
8
|
+
Exemples:
|
9
|
+
| project_name |
|
10
|
+
| deploy-context |
|
@@ -33,34 +33,47 @@ module Context
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def execute_action(context, action)
|
36
|
-
if action.nil?
|
36
|
+
state_action = if action.nil?
|
37
37
|
context.cycle
|
38
|
+
false
|
38
39
|
else
|
39
40
|
case action
|
40
41
|
when 'once'
|
41
42
|
puts "\nExecute only once\n"
|
42
43
|
context.cycle
|
44
|
+
false
|
43
45
|
when 'always'
|
44
46
|
puts "\nAlways in execution\n"
|
45
47
|
while true do
|
46
48
|
context.cycle
|
47
49
|
end
|
50
|
+
false
|
48
51
|
when 'bump'
|
49
52
|
puts "\nBump minor version\n"
|
50
53
|
context.minor_bump
|
54
|
+
false
|
51
55
|
when 'release'
|
52
56
|
puts "\nBump major version\n"
|
53
57
|
context.major_bump
|
58
|
+
false
|
54
59
|
when 'test'
|
55
60
|
puts "\nExecute tests\n"
|
56
|
-
context.cucumber_test(
|
61
|
+
context.cucumber_test(context)
|
62
|
+
false
|
57
63
|
when 'reset'
|
58
64
|
puts "\nReset versionning\n"
|
59
65
|
# context.cucumber_test(deployer)
|
66
|
+
false
|
60
67
|
else
|
61
68
|
puts "Unknown setting #{action}"
|
69
|
+
false
|
62
70
|
end
|
63
71
|
end
|
72
|
+
if state_action
|
73
|
+
puts "Action #{action} executed correctly in context #{context}"
|
74
|
+
else
|
75
|
+
abort!("Failed to execute action #{action} in context #{context}")
|
76
|
+
end
|
64
77
|
end
|
65
78
|
end
|
66
79
|
end
|
data/lib/deploy-context.rb
CHANGED
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:
|
4
|
+
version: 2.0.0.1.gae09dc8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -100,9 +100,11 @@ files:
|
|
100
100
|
- deploy-context.feature.disable
|
101
101
|
- deploy-context.gemspec
|
102
102
|
- deploy-context.old
|
103
|
-
- features/
|
103
|
+
- features/code_update.feature
|
104
104
|
- features/step_definitions/deploy-context.rb
|
105
105
|
- features/support/env.rb
|
106
|
+
- features/update_deployer.feature
|
107
|
+
- features/updated_git.feature
|
106
108
|
- lib/deploy-context.rb
|
107
109
|
- lib/deploy-context/context/binary.rb
|
108
110
|
- lib/deploy-context/context/deploy.rb
|
@@ -129,9 +131,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
131
|
version: '0'
|
130
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
133
|
requirements:
|
132
|
-
- - "
|
134
|
+
- - ">"
|
133
135
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
136
|
+
version: 1.3.1
|
135
137
|
requirements: []
|
136
138
|
rubygems_version: 3.2.32
|
137
139
|
signing_key:
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# language: fr
|
2
|
-
@fr @deploycontext
|
3
|
-
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
-
|
5
|
-
Plan du Scénario: Démarrer un simple cycle de projet
|
6
|
-
Étant donné que le projet <project_name> à la bonne version
|
7
|
-
Alors démarrer un simple cycle de <project_name>
|
8
|
-
Et bumper la version de <project_name>
|
9
|
-
Et déployer le projet <project_name>
|
10
|
-
Et tester le projet <project_name>
|
11
|
-
|
12
|
-
Exemples:
|
13
|
-
| project_name |
|
14
|
-
| deploy-context |
|