class Fuci::TeamCity::Project

Constants

RESOURCE

Public Class Methods

from_name() click to toggle source
# File lib/fuci/team_city/project.rb, line 18
def self.from_name
  new xml_doc
end

Private Class Methods

project_name() click to toggle source
# File lib/fuci/team_city/project.rb, line 39
def self.project_name
  Fuci::TeamCity.project
end
xml_doc() click to toggle source
# File lib/fuci/team_city/project.rb, line 35
def self.xml_doc
  XmlDocBuilder.from_resource RESOURCE.(project_name)
end

Public Instance Methods

latest_build_from(branch_name) click to toggle source
# File lib/fuci/team_city/project.rb, line 14
def latest_build_from branch_name
  builds_from(branch_name).first
end

Private Instance Methods

builds_from(branch_name) click to toggle source
# File lib/fuci/team_city/project.rb, line 24
def builds_from branch_name
  Builds.from_resource builds_resource(branch_name)
end
builds_resource(branch_name) click to toggle source
# File lib/fuci/team_city/project.rb, line 28
def builds_resource branch_name
  xpath("//buildType[@name=\"#{branch_name}\"]").
    attr('href').
    value +
    '/builds'
end