Sha256: 42ff5275da3bd249083b28bfba79b5ef0f7f2003dc86bf90c50e8ea777794918
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
$LOAD_PATH.unshift File.expand_path("./lib") require 'active_support/core_ext' require 'logger' require 'digest/md5' require 'restclient' require 'masheri/exceptions' require 'masheri/config' require 'masheri/rpc_client' require 'masheri/rest_client' require 'masheri/query_builder' require 'masheri/rest_client/query' require 'masheri/rest_client/base' require 'masheri/member' require 'masheri/service' module Masheri @@config = nil def self.config raise Masheri::ConfigMissing.new unless @@config.present? @@config end def self.config=(other) @@config = other end def self.load_config!(yaml_file) Masheri.config = Masheri::Config.new(yaml_file) end def self.rpc Masheri::RpcClient.new end def self.rest Masheri::RestClient.new end def self.developer_activity(service_id, options) Masheri.rest.developer_activity(service_id, options) end end # TODO: Let config be accepted as command line argument # (masheri -C config.yml) # if defined?(Rails) require 'masheri/rails' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
masheri-0.3.6 | lib/masheri.rb |