Sha256: 10a55cc5341ebbdb58e3b655fb657ebc2cb5aac15dce73a8da51bc73b41a8f35
Contents?: true
Size: 717 Bytes
Versions: 11
Compression:
Stored size: 717 Bytes
Contents
require "flipper/cloud/configuration" module Flipper module Cloud # Public: Returns a new Flipper instance with an http adapter correctly # configured for flipper cloud. # # token - The String token for the environment from the website. # options - The Hash of options. See Flipper::Cloud::Configuration. # block - The block that configuration will be yielded to allowing you to # customize this cloud instance and its adapter. def self.new(token, options = {}) configuration = Configuration.new(options.merge(token: token)) yield configuration if block_given? Flipper.new(configuration.adapter, instrumenter: configuration.instrumenter) end end end
Version data entries
11 entries across 11 versions & 1 rubygems