Skip to content

Not directly related to this PR, but seeing this written out makes me feel it is a little verbose. Perhaps it's a configure inside a configure that feels like a code smell? #10

@josecolella

Description

@josecolella
          Not directly related to this PR, but seeing this written out makes me feel it is a little verbose. Perhaps it's a configure inside a configure that feels like a code smell?

How about exposing the options as a kwargs / hash?

    config.provider = OpenFeature::FlagD::Provider.configure(
        host: "localhost"
        port: 8013
        tls: true
        provider_config: './ca.pem'
    )

It might be useful to offer both?

Originally posted by @technicalpickles in #8 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions