Module: RubyEventStore::Flipper
- Defined in:
- lib/ruby_event_store/flipper.rb,
lib/ruby_event_store/flipper/events.rb,
lib/ruby_event_store/flipper/version.rb,
lib/generators/ruby_event_store/flipper/events_generator.rb,
lib/generators/ruby_event_store/flipper/templates/events.rb
Defined Under Namespace
Modules: Events Classes: EventsGenerator, NotificationHandler
Constant Summary collapse
- DEFAULT_STREAM_PATTERN =
->(feature_name) { "FeatureToggle$#{feature_name}" }
- VERSION =
"0.2.1"
Class Method Summary collapse
Class Method Details
.enable(event_store, instrumenter: ActiveSupport::Notifications, stream_pattern: DEFAULT_STREAM_PATTERN, custom_events: nil) ⇒ Object
11 12 13 |
# File 'lib/ruby_event_store/flipper.rb', line 11 def self.enable(event_store, instrumenter: ActiveSupport::Notifications, stream_pattern: DEFAULT_STREAM_PATTERN, custom_events: nil) instrumenter.subscribe("feature_operation.flipper", NotificationHandler.new(event_store, stream_pattern, custom_events)) end |