bourdain 1.3.3 → 1.4.0

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: 117b60c641b6c056e3e29697f9e12656f237a3de
4
- data.tar.gz: 9dab833b7832fce0c41a462006794697547bbc22
3
+ metadata.gz: bb30fcd0eea1e47d8f18544aebccf74e01ac985c
4
+ data.tar.gz: 1d493aeb57b8aee5ce9c2157a42cfab6b0ff1410
5
5
  SHA512:
6
- metadata.gz: c0fcff7bf0d08bee9bee2ada6bf3002a4df2a7449fba5b6744dad6567f28abf0e782becae7e46bebba5d39d34f50e0eacec055ab48a6d055de9bb0a5f0022e32
7
- data.tar.gz: e16eb27cb9d80efe02a63620e87d2ae2164e2fdedd1ef494e41bd511e553da3aa2fb0c4105cd0b4c6395df3a911f2ef9196c779aabfcd21815c1e423d2b23407
6
+ metadata.gz: e0abe2865e740887e4cc5ab594e9ee2b0a9f4dd7ba49b119ded47067af6edaf514dde093efc11bb0c36e6828e594e85d30119fd869e92f8b23ce489dedada182
7
+ data.tar.gz: a10c79a9434603dcea5ae23ee6160bbdae91b77fef3c14a66d2123f647bf993be011a3dcac277352f1359b0f150aaaf58d9017e0827720969b80946f858cfb2a
data/.gitignore CHANGED
@@ -9,4 +9,5 @@ Gemfile.lock
9
9
  tmp
10
10
  log
11
11
  doc
12
- .yarddoc
12
+ .yarddoc
13
+ .yardoc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.4.0
data/bin/tony CHANGED
@@ -50,5 +50,5 @@ log.warn <<-EOLOG.gsub(/^ /, '').strip
50
50
  }
51
51
  EOLOG
52
52
  puts
53
- log.info 'You can find your GitLab token here: http://git.bluejeansnet.com/profile/account'
53
+ log.info 'You can find your GitLab token here: http://git.bjn.io/profile/account'
54
54
  exit 1
@@ -28,5 +28,5 @@ require_relative 'helpers/registry'
28
28
  module Bourdain
29
29
  Config = Bourdain::Helpers::Config.new(CONFIG)
30
30
  Registry = Bourdain::Helpers::Registry.new
31
- GITLAB_HOST = 'git.bluejeansnet.com'
31
+ GITLAB_HOST = 'git.bjn.io'
32
32
  end
@@ -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
@@ -66,7 +66,6 @@ module Bourdain
66
66
  end
67
67
 
68
68
  require_relative 'checks/chef'
69
- require_relative 'checks/hooks'
70
69
  require_relative 'checks/bourdain'
71
70
  require_relative 'checks/cookbooks'
72
71
  require_relative 'checks/ssh_config'
@@ -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 = 'chef/ubuntu-14.04'
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 = :debug
15
+ chef.log_level = :info
12
16
  chef.json = {}
13
17
  chef.run_list = %w(
14
18
  recipe[apt]
@@ -25,4 +25,9 @@ bin/*
25
25
  *.log
26
26
  tmp
27
27
 
28
- .chef/cookbooks
28
+ .chef/cookbooks
29
+
30
+ .terraform
31
+ *.backup
32
+ *.tfvars
33
+ *.tfplan
@@ -1,6 +1,6 @@
1
1
  require 'minitest/spec'
2
2
 
3
- describe '<%= cookbook_name %>::<%= recipe_name %>' do
3
+ describe_recipe '<%= recipe_name %>' do
4
4
  it 'has done the thing' do
5
5
  assert false
6
6
  end
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.3.3
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-08-18 00:00:00.000000000 Z
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