Sha256: 5ba9ca89bef8fd8bf781c5a292a4e69bb6a9c60d30f3c5f1bbeb31da5ecad998

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

module PivotalToPdf
  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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pivotal_to_pdf-1.1.0 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-1.0.0 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.9.1 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.9 lib/pivotal_to_pdf/pivotal.rb