deploy-context 0.11.57.1.ga274362.1.g8977db8.2.g07fba0a → 0.11.57.1.ga274362.1.g8977db8.3.g30c6ab3.1.g83cd298
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/lib/deploy-context/context/binary.rb +1 -25
- 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: d9ec4527990efd36abc4c4826756d8f27f4dab3655339cb82cbd66bb39f44ac9
|
4
|
+
data.tar.gz: 25137679fce50b7f6fbd05ef73cc9a97026ee869c4905560cb22293df6108fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29d998ae37601dfe8b0d10aec087c120f1081b9d340a3092652fcc2bd1692fc06c5053d0f0971e815db5ce0fbbe32f1b9a365f4d2bc126ad64c0fe201d0246c7
|
7
|
+
data.tar.gz: a1e72f8a78e86809261e930ca29571a260619c30a97a7353858d222161b4d44963d53dc436417d40884edbfb068aab5b1d9d271175859e2cb9fe8e3fd7010e34
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -8,28 +8,4 @@ end
|
|
8
8
|
|
9
9
|
puts "Parameter pass #{ARGV[0]}"
|
10
10
|
|
11
|
-
|
12
|
-
deployer.cycle
|
13
|
-
else
|
14
|
-
case ARGV[0]
|
15
|
-
when 'once'
|
16
|
-
puts "\nExecute only once\n"
|
17
|
-
deployer.cycle
|
18
|
-
when 'always'
|
19
|
-
puts "\nAlways in execution\n"
|
20
|
-
while true do
|
21
|
-
deployer.cycle
|
22
|
-
end
|
23
|
-
when 'bump'
|
24
|
-
puts "\nBump minor version\n"
|
25
|
-
deployer.minor_bump
|
26
|
-
when 'release'
|
27
|
-
puts "\nBump major version\n"
|
28
|
-
deployer.major_bump
|
29
|
-
when 'test'
|
30
|
-
puts "\nExecute tests\n"
|
31
|
-
deployer.cucumber_test(deployer)
|
32
|
-
else
|
33
|
-
puts "Unknown setting #{ARGV[0]}"
|
34
|
-
end
|
35
|
-
end
|
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
|