lib/polyn/cli.rb in polyn-cli-0.1.5 vs lib/polyn/cli.rb in polyn-cli-0.1.6
- old
+ new
@@ -126,16 +126,21 @@
def nats_credentials
Polyn::Cli.configuration.nats_credentials
end
+ def nats_ca_file
+ Polyn::Cli.configuration.nats_ca_file
+ end
+
def tf_apply
if polyn_env == "development"
%(terraform apply -auto-approve -input=false -var "jetstream_servers=#{nats_servers}")
else
"terraform apply -auto-approve -input=false "\
"-var \"jetstream_servers=#{nats_servers}\" "\
"-var \"nats_credentials=#{nats_credentials}\" " \
+ "-var \"nats_ca_file=#{nats_ca_file}\" " \
"-var \"polyn_env=production\""
end
end
def nats_running?