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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36ba8ef64f545ff9b5ceea4fbfdda45ca2fbbfe42d97b27d9a2bc29e964e85d4
4
- data.tar.gz: d7fd29daefd2afd3d4d05a7c9c7750692199cbef635b0d5be2431beb6be43a52
3
+ metadata.gz: 4720421d1fdb6bf885f826614a8850a2baaaa710215f6202dbe7e2e52b7ad1b1
4
+ data.tar.gz: a465d190eccc5d790adcf7c0b87a3fb801cbaed593ac72992895e2c44dee598b
5
5
  SHA512:
6
- metadata.gz: 8e9c1a40bf375e947d6e70dffdd55491cccaa87cd0ede4a1882ad73d46046c9560cda76bf896b1416710a957735a23a00b1ad309e9a81c79d31a9374091ce9f8
7
- data.tar.gz: 7ad38cc060c6f7ca3f11939ba18034160476ead6bc775d234c72c4f3510438d6b14f7355fb9c9953862a8140b7a8355d5b28b5cf5886240bcda0d235e31812c7
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
- require_relative 'lib/deploy-context'
18
- require_relative 'lib/deploy-context/deploy'
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 = Context::DeployContext.new(__dir__)
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
- false
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
- false
50
+ true
51
51
  when 'bump'
52
52
  puts "\nBump minor version\n"
53
53
  context.patch_bump
54
- context.commit
55
- false
54
+ true
56
55
  when 'release'
57
56
  puts "\nBump major version\n"
58
57
  context.minor_bump
59
- false
58
+ true
60
59
  when 'upgrade'
61
60
  puts "\nBump major version\n"
62
61
  context.major_bump
63
- false
62
+ true
64
63
  when 'test'
65
64
  puts "\nExecute tests\n"
66
65
  context.cucumber_test(context)
67
- false
66
+ true
68
67
  when 'reset'
69
68
  puts "\nReset versionning\n"
70
69
  system('rake')
71
70
  # context.cucumber_test(deployer)
72
- false
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
@@ -7,4 +7,4 @@ module Context
7
7
  cucumber
8
8
  end
9
9
  end
10
- end
10
+ end
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: 2.1.19.1.g26a2b55.1.g5ba21a1
4
+ version: 2.1.19.1.g26a2b55.1.g5ba21a1.1.g32592ad
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file