Sha256: 627e77d16655e7c4a7144f8dd8bdbac76757f3b88a39a7f61ffc1f456c820137

Contents?: true

Size: 701 Bytes

Versions: 46

Compression:

Stored size: 701 Bytes

Contents

require 'forwardable'

module Flipper
  module Cloud
    class DSL < SimpleDelegator
      attr_reader :cloud_configuration

      def initialize(cloud_configuration)
        @cloud_configuration = cloud_configuration
        super Flipper.new(@cloud_configuration.adapter, instrumenter: @cloud_configuration.instrumenter)
      end

      def sync
        @cloud_configuration.sync
      end

      def sync_secret
        @cloud_configuration.sync_secret
      end

      def inspect
        inspect_id = ::Kernel::format "%x", (object_id * 2)
        %(#<#{self.class}:0x#{inspect_id} @cloud_configuration=#{cloud_configuration.inspect}, flipper=#{__getobj__.inspect}>)
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

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