Sha256: 01075bc0ddcc2cb75163002355605b72120c01f896140192f3f97916e1aca5b0
Contents?: true
Size: 343 Bytes
Versions: 3
Compression:
Stored size: 343 Bytes
Contents
class Pivotal < ActiveResource::Base def self.inherited(sub) base_dir = ENV["PIVOTAL_TO_PDF_CONFIG_DIR"] || "~" info = YAML.load_file File.expand_path("#{base_dir}/.pivotal.yml") sub.site = %Q|https://www.pivotaltracker.com/services/v3/projects/#{info['project_id']}| sub.headers['X-TrackerToken'] = info["token"] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pivotal_to_pdf-0.8.2 | lib/pivotal_to_pdf/pivotal.rb |
pivotal_to_pdf-0.8.1 | lib/pivotal_to_pdf/pivotal.rb |
pivotal_to_pdf-0.8 | lib/pivotal_to_pdf/pivotal.rb |