Sha256: d79575e70d04009d3ebce27a8928584cedb7919acb01da40a8e1a07fc2def6a0

Contents?: true

Size: 670 Bytes

Versions: 12

Compression:

Stored size: 670 Bytes

Contents

require 'logger'
require 'json'
require 'faraday'
require 'faraday_middleware'
require 'openssl'
require 'infoblox/version'
require 'infoblox/connection'
require 'infoblox/resource'

# Require everything in the resource directory
Dir[File.expand_path('../infoblox/resource/*.rb', __FILE__)].each do |f|
  require f
end

module Infoblox
  DEBUG        = ENV['DEBUG']
  
  def wapi_version
    @wapi_version ||= (ENV['WAPI_VERSION'] || '1.0')
  end
  module_function :wapi_version

  def wapi_version=(v)
    @wapi_version = v
  end
  module_function :wapi_version=
  
  def base_path    
    '/wapi/v' + Infoblox.wapi_version + '/'
  end
  module_function :base_path
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
infoblox-1.0.1 lib/infoblox.rb
infoblox-1.0.0 lib/infoblox.rb
infoblox-0.5.3 lib/infoblox.rb
infoblox-0.5.2 lib/infoblox.rb
infoblox-0.5.1 lib/infoblox.rb
infoblox-0.5.0 lib/infoblox.rb
infoblox-0.4.1 lib/infoblox.rb
infoblox-0.4.0 lib/infoblox.rb
infoblox-0.3.3 lib/infoblox.rb
infoblox-0.3.2 lib/infoblox.rb
infoblox-0.3.1 lib/infoblox.rb
infoblox-0.3.0 lib/infoblox.rb