Sha256: d1ee9b36bdfde26eea146443507661ed150876d86dbff1b0a22feb2c30453883

Contents?: true

Size: 322 Bytes

Versions: 8

Compression:

Stored size: 322 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pivotal_to_pdf-1.6.0 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.4.0 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.3.4 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.3.3 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.3.2 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.3.1 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.3.0 lib/pivotal_to_pdf/configure.rb
pivotal_to_pdf-1.2.0 lib/pivotal_to_pdf/configure.rb