Closed mmb closed 8 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/119028663
The labels on this github issue will be updated when the story is started.
@robdimsdale showed us how to use metadata.json as an easier way to get the version:
jq -r '.Release.Version | split(".")[:2] | join(".")' < metadata.json
At this point it does not makes sense for this resource to write an minor version file because not all versions are semver.
We read the version file produced by this resource and parse out the minor version to pass to opsmgr gem rake tasks.
For example, extract "1.7" from 1.7.0.0#b1e0a6e424fb4e7a4577dc9977f066de.
Could this resource produce a new file called
minor-version
that does this for us?I'd be willing to send a PR.