Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
- Omnitruck now installs chefdk instead of just chef @schwarz
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianschwarz committed Apr 2, 2017
1 parent 5b71463 commit 4291804
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.2.0] - 2017-04-02
### Changed
- Omnitruck now installs chefdk instead of just chef @schwarz
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache v2.0'
description 'Gets the environment ready to develop chef cookbooks by installing chefdk, vagrant, ruby, virtualbox, ...'
long_description 'Gets the environment ready to develop chef cookbooks by installing chefdk, vagrant, ruby, virtualbox, ...'
version '0.1.0'
version '0.2.0'
issues_url 'https://github.com/codenamephp/chef.cookbook.cookbooks/issues' if respond_to?(:issues_url)
source_url 'https://github.com/codenamephp/chef.cookbook.cookbooks' if respond_to?(:source_url)

Expand Down
2 changes: 1 addition & 1 deletion recipes/chef.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
end

execute 'Install chefdk with omnitruck' do
command 'curl -L https://omnitruck.chef.io/install.sh | sudo bash'
command 'curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk'
notifies :delete, 'file[Delete omnitruck install script]', :before
notifies :delete, 'file[Delete omnitruck install script]', :immediately
end
Expand Down
10 changes: 10 additions & 0 deletions test/integration/default/serverspec/chef_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
it { should be_installed }
end

describe command('chef -v') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match /Chef Development Kit/ }
end

describe command('kitchen -v') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match /Test Kitchen/ }
end

describe file('/tmp/install.sh') do
it { should_not exist }
end
Expand Down

0 comments on commit 4291804

Please sign in to comment.