proboscis_cli 0.1.0 → 0.1.1
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 +4 -4
- data/lib/proboscis_cli/version.rb +1 -1
- data/lib/proboscis_cli.rb +3 -5
- data/proboscis_cli.gemspec +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acb31aaf3b03cb84ad89586625715ed8411b4ea360507d7f18f25061035fee17
|
4
|
+
data.tar.gz: 4f8dfc32ba55307289e5ed78c8e6c2f67d0d543dcb5590905e4ad788b91a64da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c85d27624a9ff37a6b722915cfaf145101e1883d9efd521b07a6cf5e900882bada72fcb1ae9a6a5bfa11584e2b186a92a99b899abfe0310e5bbaadba443fbfd5
|
7
|
+
data.tar.gz: a9b24c998096cf19447c697945a0df39f6ba7fe8dd7c2b463ab34051691f4bfc697215e93cc28e90871d05c98f16fc6cebfb67cf8a252d3137848f59c70a2b0a
|
data/lib/proboscis_cli.rb
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
class Server < Machine
|
13
13
|
def self.ip(auth_code, host, environment, subdomain, type, subpath)
|
14
|
-
response = HTTParty.get("#{host}/api/
|
14
|
+
response = HTTParty.get("#{host}/api/web/hives/#{subdomain}/#{type}", headers: {"X-Authorization" => auth_code})
|
15
15
|
if response.code != 200
|
16
16
|
puts "Unable to fetch details for domain #{subdomain}"
|
17
17
|
exit -1
|
@@ -68,7 +68,7 @@ class Worker < Machine
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def self.client_list(environment)
|
71
|
-
response = HTTParty.get("#{@host}/api/
|
71
|
+
response = HTTParty.get("#{@host}/api/web/clients", headers: {"X-Authorization" => @auth_code})
|
72
72
|
if response.code != 200
|
73
73
|
puts "Unable to get the client list.."
|
74
74
|
exit -1
|
@@ -77,7 +77,7 @@ class Worker < Machine
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def self.client(environment, client_id)
|
80
|
-
response = HTTParty.get("#{@host}/api/
|
80
|
+
response = HTTParty.get("#{@host}/api/web/clients/#{client_id["id"]}/products", headers: {"X-Authorization" => @auth_code})
|
81
81
|
if response.code != 200
|
82
82
|
puts "Unable to fetch details of client with id #{client_id}"
|
83
83
|
exit -1
|
@@ -94,7 +94,6 @@ end
|
|
94
94
|
class CashWorker < Worker
|
95
95
|
def self.worker_ip(subpath)
|
96
96
|
key = "#{subpath.gsub('_', '-')}_WORKER_IP"
|
97
|
-
puts @infra_info
|
98
97
|
if(!@infra_info[key])
|
99
98
|
puts "Unable to find target WORKER_IP in #{@infra_info}. Is the machine up?"
|
100
99
|
end
|
@@ -128,7 +127,6 @@ class Proboscis
|
|
128
127
|
end
|
129
128
|
|
130
129
|
def self.get_machine(target, type)
|
131
|
-
puts type
|
132
130
|
if type == 'CASH_REPLENISHMENT'
|
133
131
|
target == 'server' ? CashServer : CashWorker
|
134
132
|
else
|
data/proboscis_cli.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'proboscis_cli'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.date = '2018-04-10'
|
5
5
|
s.summary = "A cli client for proboscis"
|
6
6
|
s.description = "A cli client for proboscis"
|
7
|
-
s.authors = ["
|
7
|
+
s.authors = ["Delium engineering"]
|
8
8
|
s.email = 'info@delium.co'
|
9
9
|
s.homepage =
|
10
10
|
'http://rubygems.org/gems/proboscis_cli'
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proboscis_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
|
-
-
|
8
|
-
- Arvind
|
7
|
+
- Delium engineering
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
@@ -88,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: '0'
|
90
89
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.3.7
|
92
91
|
signing_key:
|
93
92
|
specification_version: 4
|
94
93
|
summary: A cli client for proboscis
|