mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28a3e59245
Now available within "fog/core" Just reverted a change where depending on Fog::VERSION for the User-Agent made a dependency on requiring "lib/fog" which also requires all providers and services. That is highly undesirable from a modular perspective!
38 lines
987 B
Ruby
38 lines
987 B
Ruby
__LIB_DIR__ = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
$LOAD_PATH.unshift __LIB_DIR__ unless
|
|
$LOAD_PATH.include?(__LIB_DIR__)
|
|
|
|
# external core dependencies
|
|
require 'base64'
|
|
require 'cgi'
|
|
require 'uri'
|
|
require 'excon'
|
|
require 'fileutils'
|
|
require 'formatador'
|
|
require 'openssl'
|
|
require 'time'
|
|
require 'timeout'
|
|
|
|
# internal core dependencies
|
|
require "fog/version"
|
|
require 'fog/core/attributes'
|
|
require 'fog/core/collection'
|
|
require 'fog/core/connection'
|
|
require 'fog/core/credentials'
|
|
require 'fog/core/current_machine'
|
|
require 'fog/core/deprecation'
|
|
require 'fog/core/errors'
|
|
require 'fog/core/hmac'
|
|
require 'fog/core/json'
|
|
require 'fog/core/logger'
|
|
require 'fog/core/model'
|
|
require 'fog/core/mock'
|
|
require 'fog/core/parser' # FIXME: would be better to only load when nokogiri is required
|
|
require 'fog/core/provider'
|
|
require 'fog/core/service'
|
|
require 'fog/core/ssh'
|
|
require 'fog/core/scp'
|
|
require 'fog/core/time'
|
|
require 'fog/core/timeout'
|
|
require 'fog/core/wait_for'
|