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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5840c0c18402852bb98c40cf7f197421efde9782d16086145597d5bf4f95888e
4
- data.tar.gz: 8d79311402a8cfaccc6e386789c0ad9df0b932aee2dbb94741aa18ee39a12c93
3
+ metadata.gz: acb31aaf3b03cb84ad89586625715ed8411b4ea360507d7f18f25061035fee17
4
+ data.tar.gz: 4f8dfc32ba55307289e5ed78c8e6c2f67d0d543dcb5590905e4ad788b91a64da
5
5
  SHA512:
6
- metadata.gz: 03cf8eb0a43d393cfe82e8eaed6aa5bf9466193b3ebeb45d4a197f42d87dcd277a0f36b9bc6f1f14dfbc1582b627a3b5acdb3cc4d2cb11a9ed72a72237ba1236
7
- data.tar.gz: 9272ef301098306bb369cc95c1b2a2774182ac154ca1ff4249116b517075a3b3e0603095fa4256055567e822c8aeb684bc24762b205366c0afbef83c06fd367c
6
+ metadata.gz: c85d27624a9ff37a6b722915cfaf145101e1883d9efd521b07a6cf5e900882bada72fcb1ae9a6a5bfa11584e2b186a92a99b899abfe0310e5bbaadba443fbfd5
7
+ data.tar.gz: a9b24c998096cf19447c697945a0df39f6ba7fe8dd7c2b463ab34051691f4bfc697215e93cc28e90871d05c98f16fc6cebfb67cf8a252d3137848f59c70a2b0a
@@ -1,3 +1,3 @@
1
1
  module ProboscisCli
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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/api/hives/#{subdomain}/#{type}", headers: {"X-Authorization" => auth_code})
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/api/clients", headers: {"X-Authorization" => @auth_code})
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/api/clients/#{client_id["id"]}/products", headers: {"X-Authorization" => @auth_code})
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
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'proboscis_cli'
3
- s.version = '0.1.0'
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 = ["Simon Roy", "Arvind"]
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Simon Roy
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.0.4
90
+ rubygems_version: 3.3.7
92
91
  signing_key:
93
92
  specification_version: 4
94
93
  summary: A cli client for proboscis