Class: Polyn::Cli::Configuration
- Inherits:
-
Object
- Object
- Polyn::Cli::Configuration
- Defined in:
- lib/polyn/cli/configuration.rb
Overview
Configuration data for Polyn::Cli
Instance Attribute Summary collapse
-
#nats_ca_file ⇒ Object
readonly
Returns the value of attribute nats_ca_file.
-
#nats_credentials ⇒ Object
readonly
Returns the value of attribute nats_credentials.
-
#nats_servers ⇒ Object
readonly
Returns the value of attribute nats_servers.
-
#nats_tls ⇒ Object
readonly
Returns the value of attribute nats_tls.
-
#polyn_env ⇒ Object
readonly
Returns the value of attribute polyn_env.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 |
# File 'lib/polyn/cli/configuration.rb', line 10 def initialize @polyn_env = ENV["POLYN_ENV"] || "development" @nats_servers = ENV["NATS_SERVERS"] || "nats://127.0.0.1:4222" @nats_credentials = ENV["NATS_CREDENTIALS"] || "" @nats_ca_file = ENV["NATS_CA_FILE"] || "" @nats_tls = ENV["NATS_TLS"] || false end |
Instance Attribute Details
#nats_ca_file ⇒ Object (readonly)
Returns the value of attribute nats_ca_file.
8 9 10 |
# File 'lib/polyn/cli/configuration.rb', line 8 def nats_ca_file @nats_ca_file end |
#nats_credentials ⇒ Object (readonly)
Returns the value of attribute nats_credentials.
8 9 10 |
# File 'lib/polyn/cli/configuration.rb', line 8 def nats_credentials @nats_credentials end |
#nats_servers ⇒ Object (readonly)
Returns the value of attribute nats_servers.
8 9 10 |
# File 'lib/polyn/cli/configuration.rb', line 8 def nats_servers @nats_servers end |
#nats_tls ⇒ Object (readonly)
Returns the value of attribute nats_tls.
8 9 10 |
# File 'lib/polyn/cli/configuration.rb', line 8 def nats_tls @nats_tls end |
#polyn_env ⇒ Object (readonly)
Returns the value of attribute polyn_env.
8 9 10 |
# File 'lib/polyn/cli/configuration.rb', line 8 def polyn_env @polyn_env end |