Skip to content

Instantly share code, notes, and snippets.

@benwtr
Created August 20, 2016 18:38
Show Gist options
  • Save benwtr/37f5e94d6e7e91c213e673d2ed58d312 to your computer and use it in GitHub Desktop.
Save benwtr/37f5e94d6e7e91c213e673d2ed58d312 to your computer and use it in GitHub Desktop.
# Policyfile.rb
name "some_policy"
run_list 'derp'
require 'json'
JSON.parse(File.read('../environments/some_env.json'))['default_attributes'].each_pair{|k,v| default[k]=v}
@benwtr
Copy link
Author

benwtr commented Aug 20, 2016

This snapshots the default_attributes from an environment into a Policyfile.lock.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment