Sha256: 183e959354cb76ac49aa3c5e21936f005c3d6a811f112f3972a8ceddf9061024

Contents?: true

Size: 1.54 KB

Versions: 6

Compression:

Stored size: 1.54 KB

Contents

require 'active_support/inflector'
require 'addressable/uri'
require 'celluloid'
require 'celluloid/io'
require 'chozo'
require 'faraday'
require 'forwardable'
require 'hashie'
require 'json'
require 'pathname'
require 'solve'

JSON.create_id = nil

module Ridley
  CHEF_VERSION = '11.4.0'.freeze

  class << self
    extend Forwardable

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

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

    # @return [Ridley::Client]
    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

    # @return [Pathname]
    def scripts
      root.join('scripts')
    end
  end

  require_relative 'ridley/mixin'
  require_relative 'ridley/logging'
  require_relative 'ridley/bootstrap_context'
  require_relative 'ridley/command_context'
  require_relative 'ridley/chef_object'
  require_relative 'ridley/chef_objects'
  require_relative 'ridley/client'
  require_relative 'ridley/connection'
  require_relative 'ridley/chef'
  require_relative 'ridley/host_commander'
  require_relative 'ridley/host_connector'
  require_relative 'ridley/middleware'
  require_relative 'ridley/resource'
  require_relative 'ridley/resources'
  require_relative 'ridley/sandbox_uploader'
  require_relative 'ridley/version'
  require_relative 'ridley/errors'
end

Celluloid.logger = Ridley.logger

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ridley-1.0.3 lib/ridley.rb
ridley-1.1.1 lib/ridley.rb
ridley-1.1.0 lib/ridley.rb
ridley-1.0.2 lib/ridley.rb
ridley-1.0.1 lib/ridley.rb
ridley-1.0.0 lib/ridley.rb