Skip to content

Instantly share code, notes, and snippets.

View chrisleavoy's full-sized avatar

Chris Leavoy chrisleavoy

  • Etsy
  • Waterloo, Canada
View GitHub Profile
@chrisleavoy
chrisleavoy / exists.rb
Last active December 15, 2015 19:29 — forked from j4m3s/exists.rb
Changed environment to use that of the currently executing one instead of the environment the master is. Thus puppet:/// URL's will resolve properly when --env XXX is used or when clients use an environment different than the master.
#
# exists.rb
#
# James Fellows 8/8/12: cloned from git://gist.github.com/1160472.git then
# modified to resolve puppet:/// paths
#
# Copyright 2011 Puppet Labs Inc.
# Copyright 2011 Krzysztof Wilczynski
#
# Licensed under the Apache License, Version 2.0 (the "License");