Skip to content

Commit

Permalink
Merge pull request #6 from greenalto/chef_11
Browse files Browse the repository at this point in the history
Make the plugin Chef 11 compatible
  • Loading branch information
meatballhat committed Aug 23, 2013
2 parents c56ad36 + 9b10ef2 commit 6aa0817
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: ruby
rvm:
- 1.9.3
env:
- CHEF_VERSION=10.24.0
- CHEF_VERSION=10.26.0
- CHEF_VERSION=11.4.0
- CHEF_VERSION=11.4.4
- CHEF_VERSION=11.6.0
before_script:
- chef-client --version
9 changes: 8 additions & 1 deletion knife-inspect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
$:.push File.expand_path("../lib", __FILE__)
require "health_inspector/version"

# Allow to pass an arbitrary chef version. Useful for testing for example.
chef_version = if ENV.key?('CHEF_VERSION')
"= #{ENV['CHEF_VERSION']}"
else
['>= 10', '<= 12']
end

Gem::Specification.new do |s|
s.name = "knife-inspect"
s.version = HealthInspector::VERSION
Expand All @@ -22,6 +29,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec"

s.add_runtime_dependency "thor"
s.add_runtime_dependency "chef", "~> 10.14"
s.add_runtime_dependency "chef", chef_version
s.add_runtime_dependency "yajl-ruby"
end
1 change: 0 additions & 1 deletion lib/health_inspector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
require "health_inspector/checklists/environments"
require "health_inspector/checklists/roles"
require 'chef/rest'
require 'chef/checksum_cache'
require 'chef/version'

module HealthInspector
Expand Down

0 comments on commit 6aa0817

Please sign in to comment.