lib/gemirro/configuration.rb in gemirro-0.3.0 vs lib/gemirro/configuration.rb in gemirro-0.4.0
- old
+ new
@@ -3,19 +3,24 @@
module Gemirro
##
# @return [Gemirro::Configuration]
#
def self.configuration
- @configuration ||= Configuration.new
+ @configuration ||= Configuration.new do
+ server do
+ access_log '/tmp/gemirro.access.log'
+ error_log '/tmp/gemirro.error.log'
+ end
+ end
end
##
# Configuration class used for storing data about a mirror such as the
# destination directory, source, ignored Gems, etc.
#
class Configuration < Confstruct::Configuration
- attr_reader :logger, :mirror_directory
- attr_accessor :source, :ignored_gems
+ attr_reader :mirror_directory
+ attr_accessor :source, :ignored_gems, :logger
##
# Returns the logger
#
# @return [Logger]