class PivotalToPdf::Configure

Public Class Methods

new() click to toggle source
# File lib/pivotal_to_pdf/configure.rb, line 3
def initialize
  base_dir = ENV["PIVOTAL_TO_PDF_CONFIG_DIR"] || "~"
  info = YAML.load_file File.expand_path("#{base_dir}/.pivotal.yml")
  info.each do |key, value|
    self.class.send :define_method, key do
      value
    end
  end
end