Module: TeamCity::Client::Builds
- Included in:
- TeamCity::Client
- Defined in:
- lib/teamcity/client/builds.rb
Overview
Defines methods related to builds
Instance Method Summary collapse
-
#build(options = {}) ⇒ Hashie::Mash
Get build details.
- #build_tags(options = {}) ⇒ Object
-
#builds(options = {}) ⇒ Array<Hashie::Mash>?
List of builds.
Instance Method Details
#build(options = {}) ⇒ Hashie::Mash
Get build details
22 23 24 25 |
# File 'lib/teamcity/client/builds.rb', line 22 def build(={}) () get("builds/#{locator()}") end |
#build_tags(options = {}) ⇒ Object
27 28 29 30 31 |
# File 'lib/teamcity/client/builds.rb', line 27 def (={}) () response = get("builds/#{locator()}/tags") response['tag'] end |
#builds(options = {}) ⇒ Array<Hashie::Mash>?
List of builds
12 13 14 15 16 |
# File 'lib/teamcity/client/builds.rb', line 12 def builds(={}) url_params = .empty? ? '' : "?locator=#{locator()}" response = get("builds#{url_params}") response['build'] end |