Skip to content

Commit

Permalink
Improve chef14 support (#30)
Browse files Browse the repository at this point in the history
* Fix issue with chef 14
* Add chef 14 and ubuntu 18.04 to tests
  • Loading branch information
ivadim authored Aug 5, 2018
1 parent 2368336 commit c019f02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ platforms:
box: ubuntu/artful64
provisioner:
require_chef_omnibus: 13.6.4

- name: ubuntu1804
driver_config:
box: ubuntu/bionic64
provisioner:
require_chef_omnibus: 14.3.37

- name: centos7
driver_config:
Expand Down Expand Up @@ -97,6 +103,7 @@ suites:
- debian9
- ubuntu1604
- ubuntu1710
- ubuntu1804
- centos7

attributes:
Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Helpers
require 'json'
require 'fileutils'

def archive_name(version)
def get_archive_name(version)
name = 'vsts_agent'
name += '_' + version if version
name
Expand Down
2 changes: 1 addition & 1 deletion resources/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

converge_if_changed do
archive_url = download_url(version)
archive_name = archive_name(version)
archive_name = get_archive_name(version)
unpack_dir = ::File.join(Chef::Config[:file_cache_path], 'unpack_agent')
unpack_dir = win_friendly_path(unpack_dir) if windows?

Expand Down

0 comments on commit c019f02

Please sign in to comment.