deploy-context 0.11.46 → 0.11.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bin/deploy-context +1 -24
- data/features/deploy-context.feature +8 -8
- data/features/step_definitions/deploy-context.rb +5 -5
- data/lib/deploy-context/context/binary.rb +23 -0
- data/lib/deploy-context.rb +0 -1
- data.tar.gz.sig +0 -0
- metadata +4 -3
- metadata.gz.sig +0 -0
- /data/{features/deploy-context.feature.disable → deploy-context.feature.disable} +0 -0
- /data/{features/step_definitions/deploy-context.old → deploy-context.old} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb8d481cf5893bf5ea428ac9e9c6020d54e620189a5ee7f764bd781993f9195
|
4
|
+
data.tar.gz: 10832d4bbbd7f2a4fabccd6d1e0ffb405a31360fbb684affc12dfa3f42522c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bc9432fc7e675dabce05a24e333290522f982ceb2d7f0aa57593d667c850f7b00bfc31107ae92e657c594562c79217f649953b44f8246032ce5d4b38874781
|
7
|
+
data.tar.gz: 5d3d55b92d7a7d540c424c7338ba4ffc31ae363856ffe6591971ed158251545327592d200d2b9224473ef0a3ab78dd146bb423203dbbfaac69d1f95819902527
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bin/deploy-context
CHANGED
@@ -1,28 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'deploy-context'
|
4
|
-
require 'deploy-context/deploy'
|
5
|
-
|
6
3
|
deployer = Context::DeployContext.new(Dir.pwd)
|
7
4
|
|
8
|
-
|
9
|
-
deployer.cycle
|
10
|
-
else
|
11
|
-
case ARGV[0]
|
12
|
-
when 'once'
|
13
|
-
puts "Parameter passe #{ARGV[0]}"
|
14
|
-
deployer.cycle
|
15
|
-
when 'always'
|
16
|
-
while true do
|
17
|
-
deployer.cycle
|
18
|
-
end
|
19
|
-
when 'bump'
|
20
|
-
deployer.minor_bump
|
21
|
-
when 'release'
|
22
|
-
deployer.major_bump
|
23
|
-
else
|
24
|
-
puts "Unkonown setting #{ARGV[0]}"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
5
|
+
require 'deploy-context/context/binary'
|
@@ -2,12 +2,12 @@
|
|
2
2
|
@fr @deploycontext
|
3
3
|
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
4
|
|
5
|
-
Plan
|
6
|
-
Étant donné le projet <
|
7
|
-
Alors démarrer un simple cycle de <
|
8
|
-
Et bumper la version de <
|
9
|
-
Et déployer le projet <
|
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
10
|
|
11
|
-
|
12
|
-
|
|
13
|
-
|deploy-context|
|
11
|
+
Exemples:
|
12
|
+
| project_name |
|
13
|
+
| deploy-context |
|
@@ -1,19 +1,19 @@
|
|
1
|
-
|
1
|
+
Étantdonnéque('le projet {word} à la bonne version') do |project_name|
|
2
2
|
if project_name == deployer.context_name
|
3
3
|
Dir.chdir deployer.context_folder
|
4
4
|
else
|
5
|
-
Dir.chdir deployer.
|
5
|
+
Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
Alors('démarrer un simple cycle de {
|
9
|
+
Alors('démarrer un simple cycle de {word}') do |project_name|
|
10
10
|
system([project_name, 'once'].join(' '))
|
11
11
|
end
|
12
12
|
|
13
|
-
Alors('bumper la version de {
|
13
|
+
Alors('bumper la version de {word}') do |project_name|
|
14
14
|
system([project_name, 'bump'].join(' '))
|
15
15
|
end
|
16
16
|
|
17
|
-
Alors('déployer le projet {
|
17
|
+
Alors('déployer le projet {word}') do |project_name|
|
18
18
|
system([project_name, 'release'].join(' '))
|
19
19
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../../deploy-context'
|
4
|
+
|
5
|
+
if ARGV[0].nil?
|
6
|
+
deployer.cycle
|
7
|
+
else
|
8
|
+
case ARGV[0]
|
9
|
+
when 'once'
|
10
|
+
puts "Parameter passe #{ARGV[0]}"
|
11
|
+
deployer.cycle
|
12
|
+
when 'always'
|
13
|
+
while true do
|
14
|
+
deployer.cycle
|
15
|
+
end
|
16
|
+
when 'bump'
|
17
|
+
deployer.minor_bump
|
18
|
+
when 'release'
|
19
|
+
deployer.major_bump
|
20
|
+
else
|
21
|
+
puts "Unkonown setting #{ARGV[0]}"
|
22
|
+
end
|
23
|
+
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: 0.11.
|
4
|
+
version: 0.11.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -97,13 +97,14 @@ files:
|
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
99
|
- bin/deploy-context
|
100
|
+
- deploy-context.feature.disable
|
100
101
|
- deploy-context.gemspec
|
102
|
+
- deploy-context.old
|
101
103
|
- features/deploy-context.feature
|
102
|
-
- features/deploy-context.feature.disable
|
103
|
-
- features/step_definitions/deploy-context.old
|
104
104
|
- features/step_definitions/deploy-context.rb
|
105
105
|
- features/support/env.rb
|
106
106
|
- lib/deploy-context.rb
|
107
|
+
- lib/deploy-context/context/binary.rb
|
107
108
|
- lib/deploy-context/context/deploy.rb
|
108
109
|
- lib/deploy-context/deploy.rb
|
109
110
|
- lib/deploy-context/deploy/cucumber.rb
|
metadata.gz.sig
CHANGED
Binary file
|
File without changes
|
File without changes
|