Class: VBucket::Service
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- VBucket::Service
- Defined in:
- lib/vbucket/service.rb
Instance Method Summary collapse
-
#initialize(config = VBucket::Configuration.new, logger = Logger.new(default_log_location)) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(config = VBucket::Configuration.new, logger = Logger.new(default_log_location)) ⇒ Service
Returns a new instance of Service.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vbucket/service.rb', line 19 def initialize( config = VBucket::Configuration.new, logger = Logger.new(default_log_location) ) super() @logger = logger @config = config @logger.debug "Using Config file: #{@config.config_path}" @logger.debug "vBucket File Root: #{@config.share}" @share = @config.share end |