Sha256: 7a77cdb6f7f91224b85b0eb17db84e0a1aa4bb7e4d922a0926227c0d34f64bf8

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

require 'active_support/core_ext/kernel/reporting'
# Silencing warnings because not all versions of GSSAPI support all of the GSSAPI methods
# the gssapi gem attempts to attach to and these warnings are dumped to STDERR.
silence_warnings do
  # Requiring winrm before all other gems because of https://github.com/WinRb/WinRM/issues/39
  require 'winrm'
end
require 'chozo'
require 'celluloid'
require 'faraday'
require 'addressable/uri'
require 'multi_json'
require 'solve'
require 'active_support/inflector'
require 'forwardable'
require 'thread'
require 'pathname'

if jruby?
  require 'json/pure'
else
  require 'json/ext'
end

require 'ridley/version'
require 'ridley/errors'

JSON.create_id = nil

# @author Jamie Winsor <reset@riotgames.com>
module Ridley
  CHEF_VERSION = '11.4.0'.freeze

  autoload :Bootstrapper, 'ridley/bootstrapper'
  autoload :Client, 'ridley/client'
  autoload :Connection, 'ridley/connection'
  autoload :ChainLink, 'ridley/chain_link'
  autoload :Chef, 'ridley/chef'
  autoload :ChefObject, 'ridley/chef_object'
  autoload :DSL, 'ridley/dsl'
  autoload :Logging, 'ridley/logging'
  autoload :Mixin, 'ridley/mixin'
  autoload :Resource, 'ridley/resource'
  autoload :SandboxUploader, 'ridley/sandbox_uploader'
  autoload :HostConnector, 'ridley/host_connector'

  class << self
    extend Forwardable

    def_delegator "Ridley::Logging", :logger
    alias_method :log, :logger

    def_delegator "Ridley::Logging", :logger=
    def_delegator "Ridley::Logging", :set_logger

    def new(*args)
      Client.new(*args)
    end

    def open(*args, &block)
      Client.open(*args, &block)
    end

    # @return [Pathname]
    def root
      @root ||= Pathname.new(File.expand_path('../', File.dirname(__FILE__)))
    end
  end
end

Celluloid.logger = Ridley.logger

require 'ridley/bootstrap_bindings'
require 'ridley/middleware'
require 'ridley/chef_objects'
require 'ridley/resources'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ridley-0.11.2 lib/ridley.rb
ridley-0.12.0.rc1 lib/ridley.rb
ridley-0.11.1 lib/ridley.rb
ridley-0.11.0.rc1 lib/ridley.rb