collins-cli 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 +4 -4
- data/lib/collins/cli/find.rb +5 -5
- data/lib/collins/cli/modify.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3635b3a1e7e3accdf26a0e3fa4bb0b171f15def
|
|
4
|
+
data.tar.gz: fb57183bb1209802eb2f23559cb4f31b205aaaef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff645e25b3d2bdb4cd39107e30b6ebebb62694102e20807ed39c7033304297428c137ca6aa6b4b36bd68b0e7fd42996ed2751ccbfea4b6fbca55ca7461580452
|
|
7
|
+
data.tar.gz: 854ea280f78defbf34267ec2581aa719ef901607f8d56ed76f0cb5b7eca81cf2d1348f663c6f638a62def9ece687561495b24c1a0d333f9504b0b319070690fe
|
data/lib/collins/cli/find.rb
CHANGED
|
@@ -98,15 +98,15 @@ module Collins::CLI
|
|
|
98
98
|
opts.separator <<_EXAMPLES_
|
|
99
99
|
Examples:
|
|
100
100
|
Query for devnodes in DEVEL pool that are VMs
|
|
101
|
-
|
|
101
|
+
#{PROG_NAME} -n develnode -p DEVEL
|
|
102
102
|
Query for asset 001234, and show its system_password
|
|
103
|
-
|
|
103
|
+
#{PROG_NAME} -t 001234 -x system_password
|
|
104
104
|
Query for all decommissioned VM assets
|
|
105
|
-
|
|
105
|
+
#{PROG_NAME} -a is_vm:true -S decommissioned
|
|
106
106
|
Query for hosts matching hostname '^web6-'
|
|
107
|
-
|
|
107
|
+
#{PROG_NAME} ^web6-
|
|
108
108
|
Query for all develnode6 nodes with a value for PUPPET_SERVER
|
|
109
|
-
|
|
109
|
+
#{PROG_NAME} -n develnode6 -a puppet_server -H
|
|
110
110
|
_EXAMPLES_
|
|
111
111
|
end
|
|
112
112
|
@parser.parse!(argv)
|
data/lib/collins/cli/modify.rb
CHANGED
|
@@ -88,8 +88,8 @@ _EOF_
|
|
|
88
88
|
Create a log entry:
|
|
89
89
|
#{PROG_NAME} -t 001234 -l'computers are broken and everything is horrible' -Lwarning
|
|
90
90
|
Read from stdin:
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
collins find -n develnode | #{PROG_NAME} -d my_attribute
|
|
92
|
+
collins find -n develnode -S allocated | #{PROG_NAME} -a collectd_version:5.2.1-52
|
|
93
93
|
echo -e "001234\\n001235\\n001236"| #{PROG_NAME} -a test_attribute:'hello world'
|
|
94
94
|
_EOF_
|
|
95
95
|
end.parse!(argv)
|
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.2
|
|
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: 2015-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|