Module: Tantot
- Defined in:
- lib/tantot.rb,
lib/tantot/agent.rb,
lib/tantot/config.rb,
lib/tantot/errors.rb,
lib/tantot/changes.rb,
lib/tantot/manager.rb,
lib/tantot/observe.rb,
lib/tantot/railtie.rb,
lib/tantot/version.rb,
lib/tantot/watcher.rb,
lib/tantot/strategy.rb,
lib/tantot/agent/base.rb,
lib/tantot/agent/block.rb,
lib/tantot/agent/watcher.rb,
lib/tantot/agent/registry.rb,
lib/tantot/strategy/chewy.rb,
lib/tantot/strategy/bypass.rb,
lib/tantot/strategy/inline.rb,
lib/tantot/extensions/chewy.rb,
lib/tantot/strategy/sidekiq.rb,
lib/tantot/extensions/grape/middleware.rb
Defined Under Namespace
Modules: Agent, Changes, Extensions, Observe, Strategy, Watcher
Classes: AgentNotFound, Config, Manager, MultipleWatchesProhibited, Railtie, UnderivableWatcher, UnresolvableAgent
Constant Summary
collapse
- VERSION =
"0.1.10"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
41
42
43
|
# File 'lib/tantot.rb', line 41
def logger
@logger || Rails.logger
end
|
Class Method Details
.agent_registry ⇒ Object
37
38
39
|
# File 'lib/tantot.rb', line 37
def agent_registry
Tantot::Agent::Registry.instance
end
|
.config ⇒ Object
33
34
35
|
# File 'lib/tantot.rb', line 33
def config
Tantot::Config.instance
end
|
.manager ⇒ Object
29
30
31
|
# File 'lib/tantot.rb', line 29
def manager
Thread.current[:tantot_manager] ||= Tantot::Manager.new
end
|