Last active
December 16, 2015 16:40
-
-
Save andrewgross/5464785 to your computer and use it in GitHub Desktop.
Makefile for Chef Repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: clean install | |
install: | |
bundle install | |
bundle exec berks install | |
test: | |
@bundle exec bash ${CHEF_PATH}/scripts/knife_test.sh | |
@bundle exec bash ${CHEF_PATH}/scripts/foodcritic_test.sh | |
@bundle exec bash ${CHEF_PATH}/scripts/rspec_test.sh | |
vagrant: | |
@if [ -a .vagrant ];\ | |
then vagrant provision;\ | |
else\ | |
vagrant up;\ | |
fi | |
ssh: | |
@vagrant ssh $(filter-out $@,$(MAKECMDGOALS)) | |
status: | |
@vagrant status | |
clean: | |
@rm -f Berksfile.lock | |
@rm -f Gemfile.lock | |
@if [ -a .vagrant ];\ | |
then vagrant destroy -f;\ | |
rm -rf .vagrant;\ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment