class TFS::AreaPaths

Public Class Methods

find(area_path) click to toggle source

Changeset can be found by id alone

TFS::AreaPaths.find("area-path")
# File lib/tfs/area_paths.rb, line 8
def find(area_path)
  begin
    TFS.areapaths(area_path).run.first
  rescue RestClient::ResourceNotFound => e
    raise Queryable::RecordNotFound, "No record found for '#{area_path}'"
  end
end