collins-cli 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/collins/cli/find.rb +2 -0
- data/spec/collins__cli__find_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2b6c2d65c5041e0f2c861fe4bc9c175727c0ab7
|
4
|
+
data.tar.gz: 9bc491344b50d18ae348ba63dc4363b69083749e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74f5c2d0dea53b235f25335337e98c3f96f42f1f1b353d06cd7e0aa2a91fe69da818b84b12616fbb8f14c7167e18c8c0de062876b2cee0e08b3046a278215c02
|
7
|
+
data.tar.gz: 54d9ac33847f8751a1218a95b119ce2d8384ec3c8f31249296029baa4e940ebb1987c2bed28a38a765849bed9d40021d22862de320e175a768bc117b82d7b927
|
data/lib/collins/cli/find.rb
CHANGED
@@ -10,6 +10,7 @@ module Collins::CLI
|
|
10
10
|
|
11
11
|
PROG_NAME = 'collins find'
|
12
12
|
QUERY_DEFAULTS = {
|
13
|
+
:remoteLookup => false,
|
13
14
|
:operation => 'AND',
|
14
15
|
:size => 100,
|
15
16
|
}
|
@@ -40,6 +41,7 @@ module Collins::CLI
|
|
40
41
|
opts.banner = "Usage: #{PROG_NAME} [options] [hostnamepattern]"
|
41
42
|
opts.separator "Query options:"
|
42
43
|
opts.on('-t','--tag TAG[,...]',Array, "Assets with tag[s] TAG") {|v| search_attrs[:tag] = v}
|
44
|
+
opts.on('-Z','--remote-lookup',"Query remote datacenters for asset (Default: #{query_opts[:remoteLookup]})") {|v| search_attrs[:remoteLookup] = v}
|
43
45
|
opts.on('-T','--type TYPE',String, "Only show assets with type TYPE") {|v| search_attrs[:type] = v}
|
44
46
|
opts.on('-n','--nodeclass NODECLASS[,...]',Array, "Assets in nodeclass NODECLASS") {|v| search_attrs[:nodeclass] = v}
|
45
47
|
opts.on('-p','--pool POOL[,...]',Array, "Assets in pool POOL") {|v| search_attrs[:pool] = v}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collins-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabe Conradi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.2.
|
47
|
+
version: 0.2.21
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.2.
|
54
|
+
version: 0.2.21
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.6.14
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: CLI utilities to interact with the Collins API
|