Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
razorsync / lib / razorsync.rb
Size: Mime:
require 'faraday'
require 'faraday_middleware'
require 'active_support/all'
require 'razorsync/version'

Dir[File.expand_path('../../faraday/*.rb', __FILE__)].each{|f| require f}
require File.expand_path('../razorsync/configuration', __FILE__)
require File.expand_path('../razorsync/api', __FILE__)
require File.expand_path('../razorsync/client', __FILE__)
require File.expand_path('../razorsync/error', __FILE__)

module Razorsync

  extend Configuration
  # Alias for Razorsync::Client.new
  # @return [Razorsync::Client]
  def self.client(options = {})
    Razorsync::Client.new(options)
  end

  # Delegate to Razorsync::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end
end