genesis_collector 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 282039c81feedfe3ad5af0a84694404240071395
4
- data.tar.gz: 45519e652372d14958abf65469a8731696e7a939
3
+ metadata.gz: e7dfaf5423e0b67c892d2dbe4f6a14dc5ca2cef4
4
+ data.tar.gz: 65f055d17bace75e51188f4c741a25a309e74f31
5
5
  SHA512:
6
- metadata.gz: 6338ed834bf46cb424e1f29be9be5c7189724d564813754651a2f210b9810a22f42537474840d63f8e765b47cae1b0c87332dea5b6aabc1a7cfec567cb54810a
7
- data.tar.gz: 08436672d2507420499738b3834d74a6cf5b50a385cc260aede9554244c6ad6237bb0909de1ba6224b5804ffb00a341ba0858fe732266bceff2e1ed89b6e1966
6
+ metadata.gz: 093533c5b4e374c523376d96c12e24911e0f6de6047ec6e8274bba84c0ed3904d16c24b73bfe58e6d8ffd5b1e95a595cddf52d6ac4f527212cae86b5c6b394c3
7
+ data.tar.gz: 27f992e3fe9e5097b1b2a683e251fca7ccea4e27a0d4f6e47cea2690cf8cb0c82901334f0d8530e6b33c2f931fd0cd944c10252fc900dbd9cc5df3e904b67784
@@ -36,6 +36,7 @@ end
36
36
  collector = GenesisCollector::Collector.new(config)
37
37
  collector.collect!
38
38
 
39
+ puts "SKU: #{collector.sku}"
39
40
  pp collector.payload
40
41
 
41
42
  collector.submit! if true == options[:submit]
@@ -11,7 +11,7 @@ require 'English'
11
11
 
12
12
  module GenesisCollector
13
13
  class Collector
14
- attr_reader :payload
14
+ attr_reader :sku, :payload
15
15
 
16
16
  include GenesisCollector::NetworkInterfaces
17
17
  include GenesisCollector::Chef
@@ -168,7 +168,7 @@ module GenesisCollector
168
168
  else
169
169
  'UKN'
170
170
  end
171
- "#{manufacturer}-#{serial}"
171
+ "#{manufacturer}-#{serial}".gsub('.','') # dells
172
172
  end
173
173
 
174
174
  def read_dmi(key)
@@ -1,3 +1,3 @@
1
1
  module GenesisCollector
2
- VERSION = '0.1.21'
2
+ VERSION = '0.1.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genesis_collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Radcliffe