Sha256: 7e990b92b1b56e78753bcaa913615a0c59d587be79036f6725ce69f5b141f21f

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

# Usage (from the repo root):
# env FLIPPER_CLOUD_TOKEN=<token> bundle exec ruby examples/cloud/basic.rb
require 'bundler/setup'
require 'flipper/cloud'

Flipper[:stats].enable

if Flipper[:stats].enabled?
  puts 'Enabled!'
else
  puts 'Disabled!'
end

Flipper[:stats].disable

if Flipper[:stats].enabled?
  puts 'Enabled!'
else
  puts 'Disabled!'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
flipper-cloud-0.23.0 examples/cloud/basic.rb
flipper-cloud-0.22.2 examples/cloud/basic.rb
flipper-cloud-0.22.1 examples/cloud/basic.rb
flipper-cloud-0.22.0 examples/cloud/basic.rb
flipper-cloud-0.21.0 examples/cloud/basic.rb
flipper-cloud-0.21.0.rc2 examples/cloud/basic.rb