Sha256: 0303601191c453dc918b530cdf297e34ae7dd91f3a8ca36b0bf0d6d9b7a8e877
Contents?: true
Size: 735 Bytes
Versions: 8
Compression:
Stored size: 735 Bytes
Contents
require "flipper" 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
8 entries across 8 versions & 1 rubygems