kitchen_hooks 1.7.20 → 1.7.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -10
- data/VERSION +1 -1
- data/etc/commit-release.json +9 -9
- data/etc/config.json +1 -1
- data/lib/kitchen_hooks/helpers.rb +4 -5
- data/lib/kitchen_hooks/helpers/sync_servers.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1627438a5d6b685b48532132a2a1368cdbb47b25
|
4
|
+
data.tar.gz: 07fa20a87fb4cd0ac9f9caf63c0fe98edfe58300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b9c3faec6259e4e394dc68f1015b19eb0b2c9b0172fc11eec35bb07db62cb4f5a881037768222007e929c41f5068706c501cc68756ba09266b7da6975d406f
|
7
|
+
data.tar.gz: 5c7dcf977d362e8cffbd295fbea909dfaf15f75a309e538f4152b574a27a03ae7967f9bad08f9bb1ef12f4f7c99015727714452ffa56ea341dcbfc2d6d565aa4
|
data/Rakefile
CHANGED
@@ -34,13 +34,4 @@ Gem::Tasks::Sign::Checksum.new sha2: true
|
|
34
34
|
|
35
35
|
# "rake version"
|
36
36
|
require 'rake/version_task'
|
37
|
-
Rake::VersionTask.new
|
38
|
-
|
39
|
-
|
40
|
-
# "rake fpm"
|
41
|
-
desc 'Convert latest .gem to .deb with FPM'
|
42
|
-
task fpm: :build do
|
43
|
-
latest_gem = Dir['pkg/*.gem'].pop
|
44
|
-
system "fpm -s gem -t deb #{Shellwords::escape latest_gem}"
|
45
|
-
system 'mv *.deb pkg'
|
46
|
-
end
|
37
|
+
Rake::VersionTask.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.21
|
data/etc/commit-release.json
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
{
|
2
|
-
"before": "
|
3
|
-
"after": "
|
4
|
-
"ref": "refs/tags/v0.2.
|
2
|
+
"before": "46cb7ed07e5683d6418d4c47ba5d9389cc2d9b19",
|
3
|
+
"after": "a2d9936039782e7e089651f5dced113d00d84d9c",
|
4
|
+
"ref": "refs/tags/v0.2.12",
|
5
5
|
"user_id": 645,
|
6
6
|
"user_name": "Sean Clemmer",
|
7
7
|
"repository": {
|
8
|
-
"name": "
|
9
|
-
"url": "git@git.bluejeansnet.com:chef/
|
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/
|
11
|
+
"homepage": "http://git.bluejeansnet.com/chef/app_cassandra_dse"
|
12
12
|
},
|
13
13
|
"commits": [
|
14
14
|
{
|
15
|
-
"id": "
|
15
|
+
"id": "a2d9936039782e7e089651f5dced113d00d84d9c",
|
16
16
|
"message": "XYZ",
|
17
17
|
"timestamp": "2014-11-25T18:30:57-08:00",
|
18
|
-
"url": "http://git.bluejeansnet.com/chef/
|
18
|
+
"url": "http://git.bluejeansnet.com/chef/app_cassandra_dse/commit/a2d9936039782e7e089651f5dced113d00d84d9c",
|
19
19
|
"author": {
|
20
20
|
"name": "Sean Clemmer",
|
21
21
|
"email": "sclemmer@bluejeans.com"
|
22
22
|
}
|
23
23
|
}
|
24
24
|
],
|
25
|
-
"total_commits_count":
|
25
|
+
"total_commits_count": 1
|
26
26
|
}
|
data/etc/config.json
CHANGED
@@ -106,8 +106,7 @@ module KitchenHooks
|
|
106
106
|
raise 'Tagged version does not match cookbook version'
|
107
107
|
end
|
108
108
|
|
109
|
-
berksfile = File
|
110
|
-
# berksfile_lock = "#{berksfile}.lock"
|
109
|
+
berksfile = File.join clone, 'Berksfile'
|
111
110
|
|
112
111
|
if File.exist? berksfile
|
113
112
|
$stdout.puts 'Uploading dependencies'
|
@@ -200,7 +199,7 @@ module KitchenHooks
|
|
200
199
|
'--config %s' % Shellwords::escape(berkshelf_config knife)
|
201
200
|
end
|
202
201
|
|
203
|
-
cmd = '
|
202
|
+
cmd = 'berks install --debug --berksfile %s %s' % [
|
204
203
|
Shellwords::escape(berksfile), knife_args
|
205
204
|
]
|
206
205
|
begin
|
@@ -225,7 +224,7 @@ module KitchenHooks
|
|
225
224
|
]
|
226
225
|
config_path = berkshelf_config(knife)
|
227
226
|
|
228
|
-
cmd = '
|
227
|
+
cmd = 'berks upload --debug --berksfile %s --config %s' % [
|
229
228
|
Shellwords::escape(berksfile), Shellwords::escape(config_path)
|
230
229
|
]
|
231
230
|
|
@@ -271,7 +270,7 @@ module KitchenHooks
|
|
271
270
|
|
272
271
|
|
273
272
|
def self.with_each_knife_do command, knives
|
274
|
-
with_each_knife "
|
273
|
+
with_each_knife "knife #{command} --config %{knife}", knives
|
275
274
|
end
|
276
275
|
|
277
276
|
def self.with_each_knife command, knives
|
@@ -114,15 +114,14 @@ private
|
|
114
114
|
deleted.each do |n|
|
115
115
|
@cached_nodes.delete n.name
|
116
116
|
end
|
117
|
-
deleted = []
|
118
117
|
# deleted.each do |n|
|
119
|
-
# puts 'Deleting node "%s"' % n
|
118
|
+
# puts 'Deleting node "%s"' % n.name
|
120
119
|
# ridleys.peach(4) do |ridley|
|
121
120
|
# begin
|
122
|
-
# ridley.node.delete n
|
123
|
-
# @cached_nodes.delete n
|
121
|
+
# ridley.node.delete n.name
|
122
|
+
# @cached_nodes.delete n.name
|
124
123
|
# rescue \
|
125
|
-
# puts('WARNING: Could not delete node "%s"' % n)
|
124
|
+
# puts('WARNING: Could not delete node "%s"' % n.name)
|
126
125
|
# end
|
127
126
|
# end
|
128
127
|
# end
|
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.
|
4
|
+
version: 1.7.21
|
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-
|
11
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hipchat
|