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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a16936f9e691ef9d0d7564c2c4c67a00afda5bf7498d731d3f04701063f5414b
4
- data.tar.gz: 0535b13a5c60a3a2c241fca848b599f1fdad362896d6ecae147dd7fccaedebfb
3
+ metadata.gz: e6f27c81897f9c1970d3b228466c1f0b5f34b5f6c5c1286064e06ff7106e72e7
4
+ data.tar.gz: f4aadba2632bfbc52aa066ac30f627de3a82af17651c1777e4cb4c07275ca967
5
5
  SHA512:
6
- metadata.gz: 4f200ef0759192c9c0196b67338450e3e3bf2fbb6a7ca1df0047d7d4903986ee8a68b6a8f31999ee31bfa61ed799033ab358f9e9548f7af6884a72993a71ce1f
7
- data.tar.gz: bf6a66f6919ddd30f033ad35a53458bffffbdb1305d58a9f718ef5303aa0fe8b589451d88928d6c8218666b9ac1e608775dd0eedb7ac251c2be0582daa6e0198
6
+ metadata.gz: 6dfd33b774a154d24d54ccc63843633343832ca536a0feb69f677b8373bccebd6d4fde76fffccea26e1387644667da904999b1f4058672a89dfd89fd9b44a7ee
7
+ data.tar.gz: 5744ef8f8f8db2e72a61b087f96c49db372217aee7964860485d5cb6aec65a4772ffc9a0f19e1e0f9fe2ae2eef0df9e63fa684b2408479e09939f1a2a53af2fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polyn-cli (0.1.0)
4
+ polyn-cli (0.1.1)
5
5
  dotenv (~> 2.7.6)
6
6
  json_schemer (~> 0.2)
7
7
  nats-pure (~> 2.0.0)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Polyn
4
4
  class Cli
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
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.0
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-08 00:00:00.000000000 Z
12
+ date: 2022-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dotenv