Created
October 26, 2011 03:37
-
-
Save rodjek/1315361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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