polyn-cli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/polyn/cli/version.rb +1 -1
- data/lib/polyn/cli.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f27c81897f9c1970d3b228466c1f0b5f34b5f6c5c1286064e06ff7106e72e7
|
4
|
+
data.tar.gz: f4aadba2632bfbc52aa066ac30f627de3a82af17651c1777e4cb4c07275ca967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dfd33b774a154d24d54ccc63843633343832ca536a0feb69f677b8373bccebd6d4fde76fffccea26e1387644667da904999b1f4058672a89dfd89fd9b44a7ee
|
7
|
+
data.tar.gz: 5744ef8f8f8db2e72a61b087f96c49db372217aee7964860485d5cb6aec65a4772ffc9a0f19e1e0f9fe2ae2eef0df9e63fa684b2408479e09939f1a2a53af2fe
|
data/Gemfile.lock
CHANGED
data/lib/polyn/cli/version.rb
CHANGED
data/lib/polyn/cli.rb
CHANGED
@@ -64,6 +64,7 @@ module Polyn
|
|
64
64
|
say "Repository initialized"
|
65
65
|
end
|
66
66
|
|
67
|
+
method_option :dir, default: Dir.getwd
|
67
68
|
desc "tf_init", "Initializes Terraform for configuration"
|
68
69
|
def tf_init
|
69
70
|
say "Initializing Terraform"
|
@@ -74,10 +75,16 @@ module Polyn
|
|
74
75
|
|
75
76
|
desc "up", "updates the JetStream streams and consumers, as well the Polyn event registry"
|
76
77
|
def up
|
78
|
+
if polyn_env == "development"
|
79
|
+
say "Starting NATS"
|
80
|
+
run "docker compose up --detach"
|
81
|
+
end
|
82
|
+
|
77
83
|
say "Updating JetStream configuration"
|
78
84
|
inside "tf" do
|
79
85
|
run tf_apply
|
80
86
|
end
|
87
|
+
|
81
88
|
say "Updating Polyn event registry"
|
82
89
|
Polyn::Cli::SchemaLoader.new(self).load_events
|
83
90
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyn-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarod
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-08-
|
12
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dotenv
|