chopshop-logreader 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c53ec0d00981d6a750be43cfa24862d8fd70d1279c059d48dc3b82373039b361
4
- data.tar.gz: abb8eef308f179833c6d79a5ff96381467ebebcfeee5781fc7345eafd9abd355
3
+ metadata.gz: b4643ced8d7e2c59fbf952f664830b153535e759faec0808a0929fa468e6a527
4
+ data.tar.gz: b3297dd87e662429b8a7fb8eb8319572d58bddc08dedb8bfc182732b1816bb64
5
5
  SHA512:
6
- metadata.gz: b45c9045b2f02568c1399dd1108cfd73105309e904210533ff820d0dcfaf3da2b2a099dd8332974ff8d871ebac86265db9d5c7d6775427035638b8ccd9e759d8
7
- data.tar.gz: 2334c245b37282fdaf7117b4d4e9ad45724f805eb72fd87497013cf928f49c71eb720553c84cfc50d915ac74f32f3664e7f2e0e1d76140ed0ecf8e23081a5735
6
+ metadata.gz: 6914d2d72ed31d866a8db404d3593e5a8440f4982df84b88a8d012828b2b08d74987337b1f31a97153facff046a6bb3cee4d58af9822bc145556628ca983c127
7
+ data.tar.gz: 29f0107c67bc1360c89c5f60ea56919b99daa5bc71b1269a694a11b37d74cb2d5be28bef2304251d6776ab8aee6387e150c0b16fd74c19ff1a6491d8258cade6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chopshop-logreader (0.2.1)
4
+ chopshop-logreader (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -26,10 +26,11 @@ module Chopshop
26
26
  options = @parser.parse
27
27
  profile = options.profile || ENV["AWS_PROFILE"] || ENV["PROFILE"]
28
28
  tenant = options.tenant || ENV["DEFAULT_TENANT"]
29
+ region = options.region || ENV["AWS_REGION"] || "us-east-1"
29
30
 
30
31
  container = nil
31
32
  service = ARGV[0]
32
- `rally-kubectl -e #{profile} -t #{tenant}`
33
+ `rally-kubectl -a #{region} -e #{profile} -t #{tenant}`
33
34
  puts "looking for valid container"
34
35
  while !container
35
36
  containers = `kubectl get pods --namespace #{options.namespace} | grep #{service}`
@@ -11,7 +11,8 @@ module Chopshop
11
11
  status: "Running", # look for a currently running container
12
12
  namespace: "connect",
13
13
  tenant: nil,
14
- profile: nil
14
+ profile: nil,
15
+ region: nil
15
16
  )
16
17
 
17
18
 
@@ -38,6 +39,10 @@ module Chopshop
38
39
  options[:profile] = profile
39
40
  end
40
41
 
42
+ opts.on("-r [REGION]", "--region [REGION]", "sets the cloud region to look for a tenant within. default: us-east-1. You may also provide this value via the ENV VAR 'AWS_REGION'", String) do |region|
43
+ options[:region] = region
44
+ end
45
+
41
46
  opts.on("-t [TENANT]", "--tenant [TENANT]", "sets the kubernetes tenant to look for containers in. default: nil. You must provide this value or set the ENV VAR DEFAULT_TENANT'", String) do |tenant|
42
47
  options[:tenant] = tenant
43
48
  end
@@ -1,5 +1,5 @@
1
1
  module Chopshop
2
2
  module Logreader
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chopshop-logreader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Perdue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler