This is a small sinatra application used to link to different versions of the Cloud Controller API docs.
Install all dependencies using bundle install
Run bundle exec rspec spec
Run bundle exec rackup
Run ./getversion.sh
for adding docs from a version of CC in CF Deployment
and ./getversion_release.sh
for a version of CC from CF Release.
Example:
./getversion_release.sh v270 | pbcopy
Add the JSON output into the respective JSON file. E.g. data/cf-deployment-api-versions.json
or data/cf-release-api-versions.json
.
- Go to the github page for cf-release
- Find the tag for the release you want.
- Go into the
src
directory. - Get the SHA for the
cloud_controller_ng
submodule. - Go to the Travis page for cloud_controller_ng
- Find the build that corresponds to the SHA you have.
- Click on that build and get the build ID out of the URL. It should be at least 8 digits long.
- Update the hash at the top of
main.rb
and add the release number, Travis build ID, and CC API version number.
- Login to lastpass - look for PWS user (Runtime) - Use those creds for the
cf login
below $ cf api api.run.pivotal.io
$ cf login
- Target cfcommunity
- Push to 'apidocs' app