Skip to content

Commit

Permalink
Require chef version >= 14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoaleman committed Dec 6, 2018
1 parent 4990182 commit 1a8f5e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ Manages [asdf](https://github.com/asdf-vm/asdf) extendable version manager.

### Chef

This cookbook requires Chef 12.9+.
This cookbook requires Chef 14.3+.

### Platforms

Expand All @@ -27,7 +27,8 @@ Other Debian and RHEL family distributions are assumed to work.

## Dependencies

- build-essential
- ark
- chef-sugar

## Usage

Expand Down
3 changes: 2 additions & 1 deletion libraries/chef_asdf_package_helpers.rb
Expand Up @@ -20,7 +20,8 @@ class Chef
module Asdf
module PackageHelpers
def install_asdf_deps
include_recipe 'build-essential'
build_essential 'asdf'

package %w(automake git grep libtool mlocate unzip)

if redhat? || fedora?
Expand Down
15 changes: 5 additions & 10 deletions metadata.rb
Expand Up @@ -5,19 +5,14 @@
description 'Installs and configures asdf'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.3.0'
chef_version '>= 12.9' if respond_to?(:chef_version)
chef_version '>= 14.3'

issues_url 'https://github.com/asdf-chef/asdf/issues'
source_url 'https://github.com/asdf-chef/asdf'

supports 'centos'
supports 'debian'
supports 'fedora'
supports 'oracle'
supports 'redhat'
supports 'scientific'
supports 'ubuntu'
%w(centos debian fedora oracle redhat scientific ubuntu).each do |os|
supports os
end

depends 'build-essential'
depends 'chef-sugar'
depends 'ark'
depends 'chef-sugar'

0 comments on commit 1a8f5e4

Please sign in to comment.