bourdain 1.3.3 → 1.4.0
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 +4 -4
- data/.gitignore +2 -1
- data/VERSION +1 -1
- data/bin/tony +1 -1
- data/lib/bourdain/helpers.rb +1 -1
- data/lib/bourdain/resources/checks/chef.rb +0 -22
- data/lib/bourdain/resources/checks.rb +0 -1
- data/templates/cookbook/Vagrantfile +6 -2
- data/templates/cookbook/gitignore +6 -1
- data/templates/cookbook/minitest.rb +1 -1
- metadata +3 -4
- data/lib/bourdain/resources/checks/hooks.rb +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb30fcd0eea1e47d8f18544aebccf74e01ac985c
|
4
|
+
data.tar.gz: 1d493aeb57b8aee5ce9c2157a42cfab6b0ff1410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0abe2865e740887e4cc5ab594e9ee2b0a9f4dd7ba49b119ded47067af6edaf514dde093efc11bb0c36e6828e594e85d30119fd869e92f8b23ce489dedada182
|
7
|
+
data.tar.gz: a10c79a9434603dcea5ae23ee6160bbdae91b77fef3c14a66d2123f647bf993be011a3dcac277352f1359b0f150aaaf58d9017e0827720969b80946f858cfb2a
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
data/bin/tony
CHANGED
data/lib/bourdain/helpers.rb
CHANGED
@@ -15,7 +15,6 @@ module Bourdain
|
|
15
15
|
super []
|
16
16
|
return unless require_chef!
|
17
17
|
check_chef_repo!
|
18
|
-
install_knife_plugins!
|
19
18
|
end
|
20
19
|
|
21
20
|
|
@@ -36,27 +35,6 @@ module Bourdain
|
|
36
35
|
end
|
37
36
|
end
|
38
37
|
|
39
|
-
def install_knife_plugins!
|
40
|
-
plugin_glob = File.join \
|
41
|
-
gem_path('templates', 'chef'), 'knife_plugin_*.rb'
|
42
|
-
|
43
|
-
plugin_dir = File.join \
|
44
|
-
ENV['HOME'], '.chef', 'plugins', 'knife'
|
45
|
-
|
46
|
-
Dir[plugin_glob].each do |template_path|
|
47
|
-
plugin = File.basename template_path
|
48
|
-
plugin =~ /knife_plugin_(.*?).rb/
|
49
|
-
plugin_name = $1.sub('_', ' ')
|
50
|
-
|
51
|
-
FileUtils.mkdir_p plugin_dir
|
52
|
-
plugin_path = File.join plugin_dir, plugin
|
53
|
-
|
54
|
-
apply_template plugin_path, template: [ 'chef', plugin ]
|
55
|
-
|
56
|
-
log.info "Installed 'knife #{plugin_name}' plugin"
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
38
|
end
|
61
39
|
end
|
62
40
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- mode: ruby -*-
|
3
3
|
# vi: set ft=ruby :
|
4
|
+
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
|
5
|
+
ENV['PATH'] = '/usr/bin:%s' % ENV['PATH']
|
6
|
+
|
4
7
|
Vagrant.configure('2') do |config|
|
5
8
|
config.omnibus.chef_version = :latest
|
6
9
|
config.berkshelf.enabled = true
|
10
|
+
|
7
11
|
config.vm.define 'vagrant' do |node|
|
8
|
-
node.vm.box = '
|
12
|
+
node.vm.box = 'bento/ubuntu-14.04'
|
9
13
|
node.vm.hostname = 'vagrant'
|
10
14
|
node.vm.provision :chef_solo do |chef|
|
11
|
-
chef.log_level = :
|
15
|
+
chef.log_level = :info
|
12
16
|
chef.json = {}
|
13
17
|
chef.run_list = %w(
|
14
18
|
recipe[apt]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bourdain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
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-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pmap
|
@@ -114,7 +114,6 @@ files:
|
|
114
114
|
- lib/bourdain/resources/checks/bourdain.rb
|
115
115
|
- lib/bourdain/resources/checks/chef.rb
|
116
116
|
- lib/bourdain/resources/checks/cookbooks.rb
|
117
|
-
- lib/bourdain/resources/checks/hooks.rb
|
118
117
|
- lib/bourdain/resources/checks/ssh_config.rb
|
119
118
|
- lib/bourdain/resources/commands.rb
|
120
119
|
- lib/bourdain/resources/commands/bump.rb
|
@@ -159,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
158
|
version: '0'
|
160
159
|
requirements: []
|
161
160
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.5
|
161
|
+
rubygems_version: 2.4.5.1
|
163
162
|
signing_key:
|
164
163
|
specification_version: 4
|
165
164
|
summary: Tools for badass chefs
|
@@ -1,59 +0,0 @@
|
|
1
|
-
module Bourdain
|
2
|
-
module Checks
|
3
|
-
|
4
|
-
class HooksCheck < Check
|
5
|
-
usage :check, <<-END
|
6
|
-
Check the local copy of the Kitchen Hooks
|
7
|
-
hooks
|
8
|
-
END
|
9
|
-
|
10
|
-
|
11
|
-
def initialize _
|
12
|
-
super []
|
13
|
-
return unless require_chef!
|
14
|
-
check_hooks!
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
private
|
20
|
-
def check_hooks!
|
21
|
-
# Ensure we have an up-to-date copy of the Kitchen Hooks
|
22
|
-
hooks = File.join('utils', 'hooks')
|
23
|
-
|
24
|
-
ahead_of_remote = false
|
25
|
-
unless Dir.exists? hooks
|
26
|
-
log.warn "Hm, I don't see a copy of the Kitchen Hooks. I'll fix that for you..."
|
27
|
-
%x| git clone git@git.bluejeansnet.com:kitchen-hooks.git #{hooks} |
|
28
|
-
log.info "Your copy of the Kitchen Hooks is now up-to-date."
|
29
|
-
|
30
|
-
else
|
31
|
-
if youre_dirty? hooks
|
32
|
-
log.warn "Your copy of the Kitchen Hooks is dirty."
|
33
|
-
elsif youre_ahead? hooks
|
34
|
-
log.warn "Your copy of the Kitchen Hooks is ahead of the remote."
|
35
|
-
ahead_of_remote = true
|
36
|
-
elsif youre_behind? hooks
|
37
|
-
log.warn "Hey, looks like your copy of the Kitchen Hooks is out-of-date. I'll fix that for you..."
|
38
|
-
Dir.chdir(hooks) { %x| git pull | }
|
39
|
-
log.info "Your copy of the Kitchen Hooks is now up-to-date."
|
40
|
-
else
|
41
|
-
log.info "Your copy of the Kitchen Hooks looks up-to-date."
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
local_version = gemfile_version 'kitchen_hooks'
|
46
|
-
latest_version = rubygems_version 'kitchen_hooks'
|
47
|
-
|
48
|
-
if latest_version == local_version
|
49
|
-
log.info 'Your Kitchen is bundled with the latest Kitchen Hooks.'
|
50
|
-
elsif local_version < latest_version
|
51
|
-
log.error 'Your Kitchen is bundled with older Kitchen Hooks. Try "bundle update kitchen_hooks".'
|
52
|
-
error!
|
53
|
-
else
|
54
|
-
log.warn "You appear to have unreleased Kitchen Hooks. I hope you know what you're doing..."
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|