File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/fauxhai-ng-8.2.0/lib/

Viewing File: fauxhai.rb

module Fauxhai
  autoload :Exception, 'fauxhai/exception'
  autoload :Fetcher, 'fauxhai/fetcher'
  autoload :Mocker, 'fauxhai/mocker'
  autoload :VERSION, 'fauxhai/version'

  def self.root
    @@root ||= File.expand_path('../../', __FILE__)
  end

  def self.mock(*args, &block)
    Fauxhai::Mocker.new(*args, &block)
  end

  def self.fetch(*args, &block)
    Fauxhai::Fetcher.new(*args, &block)
  end
end