API Module: About - mschnitzer/open-build-service-api GitHub Wiki
The About
module is a wrapper for the Build Service its /about
endpoint.
Introduction
The about route returns basic information about the running build service, such as: name of the Build Service, description of the Build Service, revision which is in use (like the version number of the Build Service), last deployment date, and the git commit hash which is being installed.
How to Use
The about
module can be accessed via an OpenBuildServiceAPI::Connection
object and its about
method:
api = OpenBuildServiceAPI::Connection.new(username, password)
puts api.about
title
Instance Variable: Returns the title of the Build Service.
Return value: String
Example:
puts api.about.title
description
Instance Variable: Returns the description of the Build Service.
Return value: String
Example:
puts api.about.description
revision
Instance Variable: Returns the revision (also known as the deployed version) of the Build Service.
Return value: String
Example:
puts api.about.revision
last_deployment
Instance Variable: Returns the name of the Build Service.
Return value: DateTime
or nil
Example:
puts api.about.last_deployment
commit
Instance Variable: Returns the git commit hash which is in use.
Return value: String
Example:
puts api.about.commit
reload!
Instance Method: Querys the information from the Build Service again and refreshes it.
Return value: boolean
(true)
Example:
api.about.reload!