Sha256: 88ed8ceb6a259818d73806d174b4ca6ac9129025ed52a51ee7a221903a3695b7

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polyn-cli-0.1.1 lib/polyn/cli/configuration.rb
polyn-cli-0.1.0 lib/polyn/cli/configuration.rb