deploy-context 0.11.46 → 0.11.48
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/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: b331ba39a7932b8cb1449ecdec94580a4b26270704d4b58ce941eaf5e802248a
|
4
|
+
data.tar.gz: f1c1d3bfb2519c22189628b02beacf4abe0235fc2d9dd11270bfe74866e4dbfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6aeb7922ca31a2c50f066a38391fef9ac301eb0fa0b4303fa3978c088f07bdea420aa37161505dd7cd46e626f3e72076f366b90f3aabe9f20810e5283d4070
|
7
|
+
data.tar.gz: 45193e79017b57e2117b9bf9a1bc3205cc6bc01a2a8e5146fdfcca878e4b9b57cf5df44d5607d5f78d424fe3585f0e199cf9cf118fc9d83055c0bb16e83489ef
|
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.48
|
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
|