deploy-context 0.6.0.1.ge54bf72.1.g3590b37 → 0.6.0.1.ge54bf72.1.g3590b37.1.g08f003f

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab564b6e057455eab35d28e79dc3efc420af4d51c82c3a767c113783b49a6a8a
4
- data.tar.gz: 16ef2a8ac7d8a30391c1616cc20e05f6c3bf279e398609c8baea0bb3ff04f7d5
3
+ metadata.gz: de34182e01d553cf698c436dea89841e625877578c2451608d7dc3d5aaa85241
4
+ data.tar.gz: 9d05b61a5706a692566a8a0db1f1d66afcac8fbf29610415b8a19968635adef2
5
5
  SHA512:
6
- metadata.gz: e0496119844f3cc665c59f2b5eff01f4c037340d72acdbe3d843e7994b0e7ed901bd90d216f907924a01051d3b496fbc4da7a0555e8702930b1de695845941d1
7
- data.tar.gz: 5b010a16c5cbf9ef9f83b432900d7cc7e71d82d755ea609087e90deaf6642f5964269ec4eaf4f091ab6a65c75a6dc2274005ae321f3953a20032eead11f573fe
6
+ metadata.gz: 330616cf2d8e375677fb74548c8e213ae8b0bc5bca948d6b92cbacffca2f827ce4be39a3264050411ca95a140e60ce45642a5da24cbe4b06b05a0b4bc5c2a29d
7
+ data.tar.gz: b96f19bd797658b132314a044b2af2da72384b7466692f5072b4091d354f246388c31f111a8b1ee71a15bdabd44ffe66193059898c9e363596a3ebd715212f0f
checksums.yaml.gz.sig CHANGED
Binary file
File without changes
@@ -27,5 +27,9 @@ module Context
27
27
  def rake(commands)
28
28
  chef_exec(['rake'] + commands)
29
29
  end
30
+
31
+ def cucumber(commands = [])
32
+ chef_exec(['cucumber'] + commands)
33
+ end
30
34
  end
31
35
  end
@@ -0,0 +1,10 @@
1
+ module Context
2
+ module CucumberDeployerHelper
3
+ def cucumber_build(context)
4
+ git_build(context)
5
+ Dir.chdir context.context_folder
6
+ puts "Working in folder #{Dir.pwd}\nAnd context #{context.context_name} is created"
7
+ cucumber
8
+ end
9
+ end
10
+ end
@@ -16,5 +16,10 @@ module Context
16
16
  Dir.chdir context.context_folder
17
17
  git ['push', '--follow-tags']
18
18
  end
19
+
20
+ def git_bump(context, level)
21
+ Dir.chdir context.context_folder
22
+ git ['version-bump', level]
23
+ end
19
24
  end
20
25
  end
@@ -31,10 +31,5 @@ module Context
31
31
  def ruby_remove_gem(context)
32
32
  clean_folder(context, 'pkg')
33
33
  end
34
-
35
- def ruby_bump(context, level)
36
- Dir.chdir context.context_folder
37
- git ['version-bump', level]
38
- end
39
34
  end
40
35
  end
@@ -3,14 +3,16 @@ require 'fileutils'
3
3
  require 'git-version-bump'
4
4
 
5
5
  require_relative 'deploy-context/deploy'
6
- require_relative 'deploy-context/deploy/ruby'
7
6
  require_relative 'deploy-context/deploy/git'
7
+ require_relative 'deploy-context/deploy/ruby'
8
+ require_relative 'deploy-context/deploy/cucumber'
8
9
 
9
10
  module Context
10
11
  class DeployContext < Deploy
11
12
  include DeployHelper
12
13
  include GitDeployerHelper
13
14
  include RubyDeployerHelper
15
+ include CucumberDeployerHelper
14
16
 
15
17
  def initialize(deploycontext_folder)
16
18
  super('deploy-context', deploycontext_folder)
@@ -45,6 +47,7 @@ module Context
45
47
  git_build(self)
46
48
  check_folder get_context_folder(self, 'build')
47
49
  check_folder get_context_folder(self, 'contexts')
50
+ cucumber_build(self)
48
51
  ruby_build(self)
49
52
  end
50
53
 
@@ -67,15 +70,15 @@ module Context
67
70
  end
68
71
 
69
72
  def patch_bump
70
- ruby_bump(self, 'patch')
73
+ git_bump(self, 'patch')
71
74
  end
72
75
 
73
76
  def minor_bump
74
- ruby_bump(self, 'minor')
77
+ git_bump(self, 'minor')
75
78
  end
76
79
 
77
80
  def major_bump
78
- ruby_bump(self, 'major')
81
+ git_bump(self, 'major')
79
82
  end
80
83
  end
81
84
  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: 0.6.0.1.ge54bf72.1.g3590b37
4
+ version: 0.6.0.1.ge54bf72.1.g3590b37.1.g08f003f
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
@@ -97,9 +97,11 @@ files:
97
97
  - Rakefile
98
98
  - bin/deploy-context
99
99
  - deploy-context.gemspec
100
+ - features/support/env.rb
100
101
  - lib/deploy-context.rb
101
102
  - lib/deploy-context/context/deploy.rb
102
103
  - lib/deploy-context/deploy.rb
104
+ - lib/deploy-context/deploy/cucumber.rb
103
105
  - lib/deploy-context/deploy/git.rb
104
106
  - lib/deploy-context/deploy/ruby.rb
105
107
  homepage: https://github.com/JimboDragonGit/deploy-context
metadata.gz.sig CHANGED
Binary file