This example splits namespaces into different files, but that's likely overkill for most uses. Shoving everything in a Rakefile
would work fine too.
To use this:
cd /tmp
mkdir raketest
cd raketest
touch Rakefile
mkdir rakelib
# Uses guard and guard-shell for auto lint/syntax check on saving | |
# | |
# 'gem install guard guard-shell puppet' will get you the dependencies. | |
# Drop this in 'Guardfile' in the root of your puppet dev directory. | |
# | |
# Run 'guard' to get started. | |
# Disable Pry interactor; this blocks the filesystem change listenener | |
# https://github.com/guard/guard/issues/357 | |
interactor :off |
This example splits namespaces into different files, but that's likely overkill for most uses. Shoving everything in a Rakefile
would work fine too.
To use this:
cd /tmp
mkdir raketest
cd raketest
touch Rakefile
mkdir rakelib
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |