Sha256: 998781ee34e6684229902bc40156344169498d0ce3140e62e73673d688133259

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

require_relative 'ferver/app'
require_relative 'ferver/configuration'
require_relative 'ferver/directory_not_found_error'
require_relative 'ferver/file_id_request'
require_relative 'ferver/file_list'
require_relative 'ferver/version'

module Ferver
  autoload :App, 'ferver/app'

  # By default, serve files from current location when the gem is called.
  DEFAULT_FILE_SERVER_DIR_PATH = './'

  class << self
      attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ferver-1.2.0 lib/ferver.rb