deploy-context 2.1.19.1.g26a2b55.1.g5ba21a1 → 2.1.19.1.g26a2b55.1.g5ba21a1.1.g32592ad
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/Rakefile +12 -5
- data/lib/deploy-context/context/deploy.rb +8 -8
- data/lib/deploy-context/deploy/cucumber.rb +1 -1
- 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: 4720421d1fdb6bf885f826614a8850a2baaaa710215f6202dbe7e2e52b7ad1b1
|
4
|
+
data.tar.gz: a465d190eccc5d790adcf7c0b87a3fb801cbaed593ac72992895e2c44dee598b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ba28cd1eb935059410965bd2faf0feb219d3564f1f60af099e00a35bda10af685a017fe97c82876071abd890a405ca83646ac122dbdcbb351fb331b3ecec6fe
|
7
|
+
data.tar.gz: 36e211defa1719504b464b666c5c2afac854aa9852695b6a28ef1b8a3fb4e923f7825553e1c83988dc0d477236cf554a230b213a6885ad041637c4961463fa3d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -13,11 +13,18 @@ end
|
|
13
13
|
|
14
14
|
require 'git-version-bump/rake-tasks'
|
15
15
|
|
16
|
+
require_relative 'lib/deploy-context'
|
17
|
+
|
18
|
+
deployer = Context::DeployContext.deployer
|
19
|
+
|
16
20
|
task :default do
|
17
|
-
|
18
|
-
|
21
|
+
deployer.execute_action(deployer, 'once')
|
22
|
+
end
|
23
|
+
|
24
|
+
task :bump do
|
25
|
+
deployer.execute_action(deployer, 'bump')
|
26
|
+
end
|
19
27
|
|
20
|
-
|
21
|
-
deployer
|
22
|
-
deployer.cycle
|
28
|
+
task :test do
|
29
|
+
deployer.execute_action(deployer, 'test')
|
23
30
|
end
|
@@ -41,40 +41,40 @@ module Context
|
|
41
41
|
when 'once'
|
42
42
|
puts "\nExecute only once\n"
|
43
43
|
context.cycle
|
44
|
-
|
44
|
+
true
|
45
45
|
when 'always'
|
46
46
|
puts "\nAlways in execution\n"
|
47
47
|
while true do
|
48
48
|
context.cycle
|
49
49
|
end
|
50
|
-
|
50
|
+
true
|
51
51
|
when 'bump'
|
52
52
|
puts "\nBump minor version\n"
|
53
53
|
context.patch_bump
|
54
|
-
|
55
|
-
false
|
54
|
+
true
|
56
55
|
when 'release'
|
57
56
|
puts "\nBump major version\n"
|
58
57
|
context.minor_bump
|
59
|
-
|
58
|
+
true
|
60
59
|
when 'upgrade'
|
61
60
|
puts "\nBump major version\n"
|
62
61
|
context.major_bump
|
63
|
-
|
62
|
+
true
|
64
63
|
when 'test'
|
65
64
|
puts "\nExecute tests\n"
|
66
65
|
context.cucumber_test(context)
|
67
|
-
|
66
|
+
true
|
68
67
|
when 'reset'
|
69
68
|
puts "\nReset versionning\n"
|
70
69
|
system('rake')
|
71
70
|
# context.cucumber_test(deployer)
|
72
|
-
|
71
|
+
true
|
73
72
|
else
|
74
73
|
puts "Unknown setting #{action}"
|
75
74
|
false
|
76
75
|
end
|
77
76
|
end
|
77
|
+
context.commit
|
78
78
|
if state_action
|
79
79
|
puts "Action #{action} executed correctly in context #{context}"
|
80
80
|
else
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|