Sha256: 81dec4da9510b74458caa1f7beeea9d895d4e6a12042733aca369edfd7b47eeb

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

require 'engineyard-metadata/version'
require 'engineyard-metadata/metadata'

module EY
  def self.metadata
    @metadata ||= if ::File.directory?('/var/log/engineyard')
      Metadata::Insider.new
    else
      Metadata::Outsider.new
    end
  end
  
  def self.reload_metadata
    @metadata = nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
engineyard-metadata-0.2.5 lib/engineyard-metadata.rb
engineyard-metadata-0.2.4 lib/engineyard-metadata.rb
engineyard-metadata-0.2.3 lib/engineyard-metadata.rb