kitchen_hooks 1.7.12 → 1.7.13

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
  SHA1:
3
- metadata.gz: 879271b60f7ed3278914667f77ff0fa78522ff73
4
- data.tar.gz: 24b0ef026b048413be1abe56c52638d04bd502b3
3
+ metadata.gz: 7547b532dfd1f1769211d8d0dfbaff80c9cc9ec4
4
+ data.tar.gz: 11b5bd99de0c8b841daf1b4b41c3af944ebbe362
5
5
  SHA512:
6
- metadata.gz: 24fe45ff786b42532a7c718f205aaf16700bed28a03d05fa4d8a81a45a62523c0a9b77cd2b3f7dcebb03d52d5908d3e33a58f943e199a704124cda81965a8d13
7
- data.tar.gz: bf8c45907d3eba179a909d154fe886776b297c6c03038d77f416377e48c79709a731141549d8691d5faec5084b690b57998724be702e228524c766d0790764f3
6
+ metadata.gz: 5bc83fafd03deb3f8ed2c583d8106544fde41061325d8f396d78cd214031d49cfd122275b68d10bc8d8b112a88410ae805a44aad0b8b6265c39cb58d171b9ce3
7
+ data.tar.gz: 7f3773e3589c928837199b2b1e609eb65809e6a44705607e7e8be55e69032641bb0366a8683a7e4cafb5bae656c80efbc7b0638902ead4336774caaf30de7374
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.12
1
+ 1.7.13
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "before": "52398401e005ec9003e932571147366cdaa3ce4b",
3
3
  "after": "52398401e005ec9003e932571147366cdaa3ce4b",
4
- "ref": "refs/tags/v0.10.1",
4
+ "ref": "refs/tags/v0.2.5",
5
5
  "user_id": 645,
6
6
  "user_name": "Sean Clemmer",
7
7
  "repository": {
8
- "name": "realm_bitcouncil",
9
- "url": "git@git.bluejeansnet.com:chef/realm_bitcouncil.git",
8
+ "name": "app_cassandra_dse",
9
+ "url": "git@git.bluejeansnet.com:chef/app_cassandra_dse.git",
10
10
  "description": "",
11
- "homepage": "http://git.bluejeansnet.com/chef/realm_bitcouncil"
11
+ "homepage": "http://git.bluejeansnet.com/chef/app_cassandra_dse"
12
12
  },
13
13
  "commits": [
14
14
  {
15
15
  "id": "52398401e005ec9003e932571147366cdaa3ce4b",
16
16
  "message": "XYZ",
17
17
  "timestamp": "2014-11-25T18:30:57-08:00",
18
- "url": "http://git.bluejeansnet.com/chef/realm_bitcouncil/commit/52398401e005ec9003e932571147366cdaa3ce4b",
18
+ "url": "http://git.bluejeansnet.com/chef/app_cassandra_dse/commit/bbdfcc13233ca0173c75896155c8013e08fa81e6",
19
19
  "author": {
20
20
  "name": "Sean Clemmer",
21
21
  "email": "sclemmer@bluejeans.com"
@@ -100,30 +100,26 @@ module KitchenHooks
100
100
  ]
101
101
 
102
102
  tmp_clone event, :tagged_commit do |clone|
103
- Dir.chdir clone do
104
- tagged_version = tag_name(event).delete('v')
105
- cookbook_version = File.read('VERSION').strip
106
- unless tagged_version == cookbook_version
107
- raise 'Tagged version does not match cookbook version'
108
- end
103
+ tagged_version = tag_name(event).delete('v')
104
+ cookbook_version = File.read(File.join(clone, 'VERSION')).strip
105
+ unless tagged_version == cookbook_version
106
+ raise 'Tagged version does not match cookbook version'
107
+ end
108
+
109
+ berksfile = File::join clone, 'Berksfile'
110
+ $stdout.puts 'Uploading dependencies'
111
+ berks_install berksfile
112
+ knives.peach do |knife|
113
+ berks_upload berksfile, knife
114
+ end
109
115
 
116
+ Dir.chdir clone do
110
117
  $stdout.puts 'Uploading cookbook'
111
118
  with_each_knife_do "cookbook upload #{cookbook_name event} -o .. --freeze", knives
112
119
 
113
120
  $stdout.puts 'Uploading bundled roles, environments, and data bags'
114
121
  kitchen_upload knives
115
122
  end
116
-
117
- berksfile = File::join clone, 'Berksfile'
118
- berksfile_lock = berksfile + '.lock'
119
-
120
- if File::exist? berksfile_lock
121
- $stdout.puts 'Uploading dependencies'
122
- berks_install berksfile
123
- knives.peach do |knife|
124
- berks_upload berksfile, knife
125
- end
126
- end
127
123
  end
128
124
 
129
125
  $stdout.puts "finished cookbook_upload: #{event['after']}"
@@ -179,6 +175,7 @@ module KitchenHooks
179
175
  begin
180
176
  $stdout.puts "berks_install: %s" % cmd
181
177
  system cmd
178
+ raise unless $?.exitstatus.zero?
182
179
  rescue
183
180
  raise 'Could not perform berks_install with config %s' % [
184
181
  berksfile.inspect
@@ -204,6 +201,7 @@ module KitchenHooks
204
201
  begin
205
202
  $stdout.puts "berks_upload: %s" % cmd
206
203
  system cmd
204
+ raise unless $?.exitstatus.zero?
207
205
  rescue
208
206
  raise 'Could not perform berks_upload with config %s, knife %s' % [
209
207
  berksfile.inspect, knife.inspect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.12
4
+ version: 1.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hipchat