Sha256: 1caf956dd0a6f4922351301b8887d6ebc61378bb7523a5a180865184dd9277a3

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

require 'active_support/core_ext/module/attribute_accessors'
require 'logger'

require 'masheri/exceptions'
require 'masheri/client'
require 'masheri/api_object_base'
require 'masheri/member'
require 'masheri/key'
require 'masheri/role'
require 'masheri/query'

if defined?(Rails)
  require 'masheri/rails'
end

module Masheri
  mattr_accessor :client
  @@client = nil

  mattr_accessor :logger, :instance_writer => false
  # TODO: Handle possible Rails logger.
  @@logger = Logger.new(STDOUT)
  @@logger.level = Logger::WARN

  mattr_accessor :test_mode, :instance_writer => false
  @@test_mode = false

  def self.load_config!(yaml_file)
    Masheri.client = Masheri::Client.from_yaml(yaml_file)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
masheri-0.3.1 lib/masheri.rb
masheri-0.2.0 lib/masheri.rb