Sha256: a4b6e561b01a2f49289c1e1607d36b8c37ff3bbf3524f73e20bd36f0c0e45321

Contents?: true

Size: 580 Bytes

Versions: 35

Compression:

Stored size: 580 Bytes

Contents

require 'ops_manager_ui_drivers/version16/api'

module OpsManagerUiDrivers
  module Version17
    class Api < Version16::Api
      def set_feature_flag(flag_name, value)
        feature_flag_path = File.join('feature_flags', flag_name)

        http.request(put(feature_flag_path, enabled: value))
      end

      private

      def put(endpoint, form_data)
        Net::HTTP::Put.new(api_uri(endpoint).request_uri).tap do |put_request|
          put_request.basic_auth(@username, @password)
          put_request.set_form_data(form_data)
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-1.8.3 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.27.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.26.1 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.26.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.25.1 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.25.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.24.4 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.24.3 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.24.2 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.24.1 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.24.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.23.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.22.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.21.1 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.21.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.20.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.19.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.18.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.17.0 lib/ops_manager_ui_drivers/version17/api.rb
ops_manager_ui_drivers-1.16.0 lib/ops_manager_ui_drivers/version17/api.rb