lib/arsenicum.rb in arsenicum-0.0.1 vs lib/arsenicum.rb in arsenicum-0.1.0
- old
+ new
@@ -1,14 +1,25 @@
module Arsenicum
- autoload :Version, 'arsenicum/version'
- autoload :Queue, 'arsenicum/queue'
- autoload :Task, 'arsenicum/task'
- autoload :Configuration, 'arsenicum/configuration'
- autoload :Serialization, 'arsenicum/serialization'
- autoload :WatchDog, 'arsenicum/watchdog'
- autoload :QueueProxy, 'arsenicum/queue_proxy'
- autoload :Syntax, 'arsenicum/syntax'
- autoload :Sqs, 'arsenicum/sqs'
- autoload :CLI, 'arsenicum/cli'
- autoload :Server, 'arsenicum/server'
- autoload :Actor, 'arsenicum/actor'
+ autoload :Configuration, 'arsenicum/configuration'
+ autoload :MisconfigurationError, 'arsenicum/configuration'
+ autoload :Core, 'arsenicum/core'
+ autoload :Util, 'arsenicum/util'
+ autoload :Version, 'arsenicum/version'
+ autoload :Serializer, 'arsenicum/serializer'
+ autoload :Formatter, 'arsenicum/formatter'
+ autoload :Async, 'arsenicum/async'
+ autoload :Main, 'arsenicum/main'
+ autoload :IO, 'arsenicum/io'
+ autoload :Task, 'arsenicum/task'
+
+ class << self
+ def configure(arg = nil, &block)
+ Arsenicum::Configuration.configure arg, &block
+ end
+
+ def configuration
+ Configuration.instance
+ end
+
+ alias_method :config, :configuration
+ end
end