Sha256: fcc7170fe9f436ac57af70e0e419037c277ef334119b0f40e647e5c2c1294ef1

Contents?: true

Size: 386 Bytes

Versions: 31

Compression:

Stored size: 386 Bytes

Contents

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

require_relative "./cloud_setup"
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

31 entries across 31 versions & 2 rubygems

Version Path
flipper-1.3.2 examples/cloud/basic.rb
flipper-1.3.1 examples/cloud/basic.rb
flipper-1.3.0 examples/cloud/basic.rb
flipper-1.3.0.pre examples/cloud/basic.rb
flipper-1.2.2 examples/cloud/basic.rb
flipper-1.2.1 examples/cloud/basic.rb
flipper-1.2.0 examples/cloud/basic.rb
flipper-1.1.2 examples/cloud/basic.rb
flipper-1.1.1 examples/cloud/basic.rb
flipper-1.1.0 examples/cloud/basic.rb
flipper-1.0.0 examples/cloud/basic.rb
flipper-1.0.0.pre examples/cloud/basic.rb
flipper-cloud-0.28.3 examples/cloud/basic.rb
flipper-cloud-0.28.2 examples/cloud/basic.rb
flipper-cloud-0.28.1 examples/cloud/basic.rb
flipper-cloud-0.28.0 examples/cloud/basic.rb
flipper-cloud-0.27.1 examples/cloud/basic.rb
flipper-cloud-0.27.0 examples/cloud/basic.rb
flipper-cloud-0.26.2 examples/cloud/basic.rb
flipper-cloud-0.26.1 examples/cloud/basic.rb