deploy-context 2.1.19.1.g26a2b55 → 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: 81739ce6a33285d101abbee98105d7fada39766e607139ec48a7e5cad3668d0d
4
- data.tar.gz: 69b4d192b3aa0f5c04488d1381359091cd1ae75ff7d447e9782b1e9e77fba3b4
3
+ metadata.gz: 4720421d1fdb6bf885f826614a8850a2baaaa710215f6202dbe7e2e52b7ad1b1
4
+ data.tar.gz: a465d190eccc5d790adcf7c0b87a3fb801cbaed593ac72992895e2c44dee598b
5
5
  SHA512:
6
- metadata.gz: eb73930365f30d80633e865b83b227c07cd5037bc9bfd90864eb2b5d25d05ca48123c1679940d4bc938fff5e81e03af40d6342050ebe0cd5c5fba564466f0483
7
- data.tar.gz: e6c7ea5327af9595d28bb8efbe11812284003b1fb0527fb58d457eddc56340bfd35b23a50db4b538b98a94d04ccee321daa5553b91005e5162b75fb404206f19
6
+ metadata.gz: 7ba28cd1eb935059410965bd2faf0feb219d3564f1f60af099e00a35bda10af685a017fe97c82876071abd890a405ca83646ac122dbdcbb351fb331b3ecec6fe
7
+ data.tar.gz: 36e211defa1719504b464b666c5c2afac854aa9852695b6a28ef1b8a3fb4e923f7825553e1c83988dc0d477236cf554a230b213a6885ad041637c4961463fa3d
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1,3 @@
1
- B�7
2
- �i7J7�k��Bh�.�--�;X�
3
- h
4
- �HXI�����d�����[����R��W1�ZJp�����C� �2���ݮ�H��†J+�4~ga-�;���VqW���:���bd���iȃAg�� os�G�0P�S����+���]�� zIƍD�P��T� ���|)`u��(%J\��P����jp:���Y�ma����b��`� ggr�\�=8��>�!�w�0֕��[;þ­s/6�,'�����p�e���Z��)��3�և8��=��{�f)[Z�����{_��Z��N狄%z�Ҕ�8ty��pd�,��o����0�����Z��H�rH��=�T���{���� ����(��b���H�~
1
+ +J��0Ɖ^��[[�bԒ� ����b�j''���)���dB@��������vi߂�t>��TM#���P�7?���{@\,�/�b��2/=�1�VG W
2
+ }�� ��?V�ѸV0P�u';�{� A\Lp���A zG`�ҋ��e:�tY�/���
3
+ ��,8%,T.=U��Th��+ ��y����� nhrm������(�\NS
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
@@ -14,8 +14,8 @@ module Context
14
14
  include CucumberDeployerHelper
15
15
 
16
16
  def self.deployer
17
- DEPLOYER = Context::DeployContext.new(Dir.pwd) if DEPLOYER.nil?
18
- DEPLOYER
17
+ @deployer = Context::DeployContext.new(Dir.pwd) if @deployer.nil?
18
+ @deployer
19
19
  end
20
20
 
21
21
  def initialize(deploycontext_folder)
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
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