Sha256: ba0f136a832631490367ec6129b426a7ee98987f981d8e7560f9a5e66b10418b

Contents?: true

Size: 357 Bytes

Versions: 36

Compression:

Stored size: 357 Bytes

Contents

require 'bundler/setup'
require 'logger'

ENV["FLIPPER_MONGO_URL"] ||= "mongodb://127.0.0.1:#{ENV["MONGODB_PORT"] || 27017}"
require 'flipper/adapters/mongo'

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

36 entries across 36 versions & 1 rubygems

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