Sha256: 09baa32d00828f0934150dbb883e57ad1fc6f7b170e4e8c9ffd626fc3f1d7bc0

Contents?: true

Size: 734 Bytes

Versions: 2

Compression:

Stored size: 734 Bytes

Contents

#
# Cookbook Name:: learn-the-basics-windows
# Recipe:: setup
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
powershell_script 'install Chef DK' do
 code <<-EOH.strip_heredoc
   . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -channel current -project chefdk
 EOH
 not_if 'Get-Command chef'
end

# Ensure `chef` is on the system PATH.
windows_path node['learn_the_basics']['windows']['chef_path'] do
  action :add
end

control_group 'validate Chef DK installation' do
  control 'validate version' do
    describe command('chef --version') do
      its (:stdout) { should match /Chef Development Kit Version: 0.11.0/ }
      its (:stdout) { should match /chef-client version: 12.7.0/ }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-12.7.2 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/setup.rb
chef-12.7.2-universal-mingw32 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/setup.rb