When I run the build, I want to search for a config key rollbackversion
in a config file and replace the value against it (null
) with the current branch of the deployment server (prior to rollout). This is how I am storing the values -
destination = /home/sandeepan/mock_del_servers/box1
rollbackbranch = null
I already found ways to find and replace a value, but that is not what I am looking for. I want to specify a key and replace the value against it.
find replace text in file with Phing
How can I conditionally replace tokens in a config file with Capistrano or Phing?