Module: TeamCity::Client::Projects
- Included in:
- TeamCity::Client
- Defined in:
- lib/teamcity/client/projects.rb
Overview
Defines methods related to projects
Instance Method Summary collapse
-
#project(options = {}) ⇒ Hashie::Mash
Get project details.
-
#project_buildtypes(options = {}) ⇒ Array<Hashie::Mash>?
List of Build Configurations of a project.
-
#project_parameters(options = {}) ⇒ Array<Hashie::Mash>?
List of parameters defined on a project.
-
#projects ⇒ Array<Hashie::Mash>?
List of projects.
Instance Method Details
#project(options = {}) ⇒ Hashie::Mash
Get project details
20 21 22 23 |
# File 'lib/teamcity/client/projects.rb', line 20 def project(={}) () get("projects/#{locator()}") end |
#project_buildtypes(options = {}) ⇒ Array<Hashie::Mash>?
List of Build Configurations of a project
29 30 31 32 33 |
# File 'lib/teamcity/client/projects.rb', line 29 def project_buildtypes(={}) () response = get("projects/#{locator()}/buildTypes") response['buildType'] end |
#project_parameters(options = {}) ⇒ Array<Hashie::Mash>?
List of parameters defined on a project
39 40 41 42 43 |
# File 'lib/teamcity/client/projects.rb', line 39 def project_parameters(={}) () response = get("projects/#{locator()}/parameters") response['property'] end |
#projects ⇒ Array<Hashie::Mash>?
List of projects
11 12 13 14 |
# File 'lib/teamcity/client/projects.rb', line 11 def projects response = get('projects') response['project'] end |