Skip to content

Instantly share code, notes, and snippets.

@phnz
Created September 23, 2013 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phnz/6670683 to your computer and use it in GitHub Desktop.
Save phnz/6670683 to your computer and use it in GitHub Desktop.
current_version = `cd #{node[:deploy][application][:deploy_to]}/current/ && git describe`
Chef::Log.debug("Current GIT version #{current_version}")
# current_version is empty :(
@JesseRhoads
Copy link

Have you tried to hardcode the path here? It may not be filling in the directory from the node attributes like you expect.

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