Skip to content

Instantly share code, notes, and snippets.

@dprotaso
dprotaso / print_deps_for_target.sh
Last active February 27, 2019 17:56
Print the external dependencies for an envoy target
#!/bin/bash
set -o errexit
set -o pipefail
if [[ -z "$(which jq)" ]]; then
echo "jq is required"
exit 1
fi
require 'active_support/core_ext/hash'
require 'erb'
require 'yaml'
require 'ostruct'
require 'bosh/template/evaluation_context'
require 'json'
include Bosh::Template::PropertyHelper
if ARGV.empty?
@dprotaso
dprotaso / render-bosh-template.sh
Last active August 11, 2018 21:43
Render a BOSH template
#!/usr/bin/env ruby
require 'active_support/core_ext/hash'
require 'erb'
require 'yaml'
require 'ostruct'
require 'bosh/template/evaluation_context'
require 'json'
include Bosh::Template::PropertyHelper