Sha256: 82bbf0ae250f94bab1b6674f10701039f8091cad8a7abbc14efed23d84504825
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
Contents
# encoding: utf-8 require 'fileutils' require 'rest_client' require 'json' require 'i18n' require 'active_support' require 'active_support/core_ext/hash' require 'yaml' require 'logger' require File.join(File.dirname(__FILE__),'/version') require File.join(File.dirname(__FILE__),'/constant') require File.join(File.dirname(__FILE__),'/configuration') require File.join(File.dirname(__FILE__),'/client') require File.join(File.dirname(__FILE__),'/command') require File.join(File.dirname(__FILE__),'/cache') module ZmeygoSync class << self attr_accessor :client attr_accessor :config attr_accessor :cache attr_accessor :logger def method_missing(method, *args) self.cache.respond_to?(method)? cache.send(method, *args) : super end def configure self.config ||= Configuration.new if block_given? yield(config) end self.cache = Cache.new self.logger = Logger.new(File.join(Rails.root, 'log', 'zmeygo_sync.log')) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zmeygo_sync-0.21 | lib/zmeygo_sync/base.rb |
zmeygo_sync-0.2 | lib/zmeygo_sync/base.rb |