Module: Datadog::AppSec::Contrib::Rack::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/appsec/contrib/rack/patcher.rb
Overview
Patcher for Rack integration
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
25 26 27 28 29 |
# File 'lib/datadog/appsec/contrib/rack/patcher.rb', line 25 def patch Monitor::Gateway::Watcher.watch Gateway::Watcher.watch Patcher.instance_variable_set(:@patched, true) end |
.patched? ⇒ Boolean
17 18 19 |
# File 'lib/datadog/appsec/contrib/rack/patcher.rb', line 17 def patched? Patcher.instance_variable_get(:@patched) # TODO: Patcher.flag_patched end |
.target_version ⇒ Object
21 22 23 |
# File 'lib/datadog/appsec/contrib/rack/patcher.rb', line 21 def target_version Integration.version end |