deploy-context 0.11.57.1.ga274362.1.g8977db8 → 0.11.57.1.ga274362.1.g8977db8.3.g30c6ab3
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/lib/deploy-context/context/binary.rb +3 -21
- data/lib/deploy-context/context/deploy.rb +31 -0
- 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: 052f48e6d508bbf2a02ec2d6f1ede011035e188461086e17ee8dec32ccc867f5
|
4
|
+
data.tar.gz: e03a35bbc51a22aa6613c2438ba647cec9030e6f70f045630f74900f31cdb909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693807d8c9a97c46a84866d56068ed8e53f20b3b5623df2ef2fed9458a3e6e9c176e853e046b253dcd7c36dd8717b6061f756dade0856f1319e255738d9da28c
|
7
|
+
data.tar.gz: e875dcfc677a4ed2df5044fc6885ad8e185af44c9c217ec4b83ece452434ec8456e22f943a1038b34c799da48cb73fd87ba0d85909c02e718e61628c614f7cfc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -6,24 +6,6 @@ def deployer
|
|
6
6
|
DEPLOYER
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
case ARGV[0]
|
13
|
-
when 'once'
|
14
|
-
puts "Parameter passe #{ARGV[0]}"
|
15
|
-
deployer.cycle
|
16
|
-
when 'always'
|
17
|
-
while true do
|
18
|
-
deployer.cycle
|
19
|
-
end
|
20
|
-
when 'bump'
|
21
|
-
deployer.minor_bump
|
22
|
-
when 'release'
|
23
|
-
deployer.major_bump
|
24
|
-
when 'test'
|
25
|
-
deployer.cucumber_test(deployer)
|
26
|
-
else
|
27
|
-
puts "Unkonown setting #{ARGV[0]}"
|
28
|
-
end
|
29
|
-
end
|
9
|
+
puts "Parameter pass #{ARGV[0]}"
|
10
|
+
|
11
|
+
deployer.execute_action(deployer, ARGV[0])
|
@@ -31,5 +31,36 @@ module Context
|
|
31
31
|
def cucumber(commands = [])
|
32
32
|
chef_exec(['cucumber'] + commands)
|
33
33
|
end
|
34
|
+
|
35
|
+
def execute_action(context, action)
|
36
|
+
if action.nil?
|
37
|
+
context.cycle
|
38
|
+
else
|
39
|
+
case action
|
40
|
+
when 'once'
|
41
|
+
puts "\nExecute only once\n"
|
42
|
+
context.cycle
|
43
|
+
when 'always'
|
44
|
+
puts "\nAlways in execution\n"
|
45
|
+
while true do
|
46
|
+
context.cycle
|
47
|
+
end
|
48
|
+
when 'bump'
|
49
|
+
puts "\nBump minor version\n"
|
50
|
+
context.minor_bump
|
51
|
+
when 'release'
|
52
|
+
puts "\nBump major version\n"
|
53
|
+
context.major_bump
|
54
|
+
when 'test'
|
55
|
+
puts "\nExecute tests\n"
|
56
|
+
context.cucumber_test(deployer)
|
57
|
+
when 'reset'
|
58
|
+
puts "\nReset versionning\n"
|
59
|
+
# context.cucumber_test(deployer)
|
60
|
+
else
|
61
|
+
puts "Unknown setting #{action}"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
34
65
|
end
|
35
66
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|