Skip to content

Instantly share code, notes, and snippets.

@rodjek
Created October 26, 2011 03:37
Show Gist options
  • Save rodjek/1315361 to your computer and use it in GitHub Desktop.
Save rodjek/1315361 to your computer and use it in GitHub Desktop.
# Create a new fact named console_deployed_version
Facter.add("console_deployed_version") do
# Run svn info on /usr/local/dwalu/app to pull the deployed version and put it into a fact.
setcode do
`svn info /usr/local/dwalu/app --config-dir=/tmp/.subversion | grep Revision | sed 's/.*:.//g'`.chomp
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment