genesis_collector 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/genesis_collector +1 -2
- data/lib/genesis_collector/collector.rb +1 -1
- data/lib/genesis_collector/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8079f7dfeb7886472617a84b5c597e004b73c1f2
|
4
|
+
data.tar.gz: 8f1a9b51becba37d3f19d2b5bff13ce2fa400a82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c79f9c1a108bc50489319529ff01e11142ef7b983dfaff8e7bf9647c6c43acc7009bc5e8bbac6ebbd57b7f860816800ee847c246185a120cecd728e7eae371
|
7
|
+
data.tar.gz: 1dc8b7d3b203245116685331c9e6135ad495c872c64b1d28ec1c95ee0e391f417af1f157ce444494a7682ed0481f6a2b0ff1e90c1a7faac8d917f080dd597a78
|
data/exe/genesis_collector
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'bundler/setup'
|
4
3
|
require 'genesis_collector'
|
5
4
|
require 'pp'
|
6
5
|
require 'optparse'
|
@@ -40,7 +39,7 @@ collector = GenesisCollector::Collector.new(config)
|
|
40
39
|
collector.collect!
|
41
40
|
|
42
41
|
if options[:json]
|
43
|
-
puts JSON.
|
42
|
+
puts JSON.pretty_generate(collector.payload)
|
44
43
|
else
|
45
44
|
puts "SKU: #{collector.sku}"
|
46
45
|
pp collector.payload
|
@@ -124,7 +124,7 @@ module GenesisCollector
|
|
124
124
|
def shellout_with_timeout(command, timeout = 2)
|
125
125
|
response = `timeout #{timeout} #{command}`
|
126
126
|
unless $CHILD_STATUS.success?
|
127
|
-
puts "Call to #{command} timed out after #{timeout} seconds"
|
127
|
+
STDERR.puts "Call to #{command} timed out after #{timeout} seconds"
|
128
128
|
return ''
|
129
129
|
end
|
130
130
|
response
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genesis_collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Radcliffe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.2.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Agent to collect information about bare metal servers and send it to Genesis.
|