Sha256: dd99190c143c8358d1cb6491c3d2d2f97eb8442304c7a02575c5e9fc3ce936cc

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Polyn
  class Cli
    ##
    # Configuration data for Polyn::Cli
    class Configuration
      attr_reader :polyn_env, :nats_servers, :nats_credentials

      def initialize
        @polyn_env        = ENV["POLYN_ENV"] || "development"
        @nats_servers     = ENV["NATS_SERVERS"] || "localhost:4222"
        @nats_credentials = ENV["NATS_CREDENTIALS"] || ""
        @nats_ca_file     = ENV["NATS_CA_FILE"] || ""
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyn-cli-0.1.6 lib/polyn/cli/configuration.rb