Sha256: e6c7cfe2d97e5cf9ce7610830e4bacf44d6ce9f4a0be547d7a7087e2e494b689
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
# Flipper read-only A [read-only](https://github.com/jnunemaker/flipper/blob/master/lib/flipper/adapters/read_only.rb) adapter for [Flipper](https://github.com/jnunemaker/flipper). Use this adapter to wrap another adapter and raise an exception for any writes. Any attempted write raises `Flipper::Adapters::ReadOnly::WriteAttempted` with message `'write attempted while in read only mode'` ## Usage ```ruby # example wrapping memory adapter require 'flipper/adapters/read_only' Flipper.configure do |config| config.adapter do Flipper::Adapters::ReadOnly.new(Flipper::Adapters::Memory.new) end end # Enabling a feature > Flipper[:dashboard_panel].enable => Flipper::Adapters::ReadOnly::WriteAttempted: write attempted while in read only mode ```
Version data entries
5 entries across 5 versions & 1 rubygems