Module: Diplomat
- Defined in:
- lib/diplomat.rb,
lib/diplomat/kv.rb,
lib/diplomat/lock.rb,
lib/diplomat/check.rb,
lib/diplomat/health.rb,
lib/diplomat/members.rb,
lib/diplomat/service.rb,
lib/diplomat/session.rb,
lib/diplomat/version.rb,
lib/diplomat/rest_client.rb,
lib/diplomat/configuration.rb
Defined Under Namespace
Classes: Check, Configuration, Health, Kv, Lock, Members, RestClient, Service, Session
Constant Summary collapse
- VERSION =
"0.2.2"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.lib_path ⇒ Object
Returns the value of attribute lib_path.
-
.root_path ⇒ Object
Returns the value of attribute root_path.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Build optional configuration by yielding a block to configure.
-
.require_libs(*libs) ⇒ Object
(also: require_lib)
Internal: Requires internal Faraday libraries.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/diplomat.rb', line 7 def configuration @configuration end |
.lib_path ⇒ Object
Returns the value of attribute lib_path.
6 7 8 |
# File 'lib/diplomat.rb', line 6 def lib_path @lib_path end |
.root_path ⇒ Object
Returns the value of attribute root_path.
5 6 7 |
# File 'lib/diplomat.rb', line 5 def root_path @root_path end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Build optional configuration by yielding a block to configure
29 30 31 32 |
# File 'lib/diplomat.rb', line 29 def configure self.configuration ||= Diplomat::Configuration.new yield(configuration) end |
.require_libs(*libs) ⇒ Object Also known as: require_lib
Internal: Requires internal Faraday libraries.
11 12 13 14 15 |
# File 'lib/diplomat.rb', line 11 def require_libs(*libs) libs.each do |lib| require "#{lib_path}/#{lib}" end end |