hammer_cli_bluecat 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: b92088eb6a5bbe78c9ce4cd2027e840d0eb91ad2
4
- data.tar.gz: e4748449947a6a4cfea21e27cc4e8dab5d15fd84
3
+ metadata.gz: b9667bd507c88813fb262237daaa525eb8f3346f
4
+ data.tar.gz: 9ead4eaa7b7e5a66bd922d29f460dfae38f8f315
5
5
  SHA512:
6
- metadata.gz: 412994e87bba2a0a1cedbbc399ad9b160993c70e6309b2af9692d304821d42d803633da69d3e8f8d2751eb77d07b72cba05d55eb9231a4fee6f6bbda224ab04b
7
- data.tar.gz: 3df8048aca50b53ef57eec3a076dbf34e9d9d59391e666ae17153c8ed9a2c664877ce59cffb298d111386115c5ca5e01aa98197d7787e035f15d38b9cab602a6
6
+ metadata.gz: f77d983eae3f3602f19498a411113d906ce508ec1cdced5408b1d204ad0753f965c7f6ffb86daf68c76fd097441f8dbc3a025da8dedab8ca192ba27f028cee2a
7
+ data.tar.gz: 5227d7061c5c1d08e0ef97a392197059d6c4b40b865b9c87bb2d1b56df069dd973d642cea206cbe305922492398da8d268811c6028ee955fa4d8e681e87683b7
data/README.md CHANGED
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- $ gem install hammer-cli-bluecat
19
+ $ gem install hammer_cli_bluecat
20
20
 
21
21
  ## Usage
22
22
 
@@ -1,3 +1,3 @@
1
1
  module HammerCliBluecat
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -24,10 +24,10 @@ module HammerCliBluecat
24
24
  end
25
25
 
26
26
  # Gather current Foreman subnets
27
- subnet_networks = foreman.resource(:subnets).call(:index, :per_page => 9999).map do |s|
27
+ subnet_networks = foreman.resource(:subnets).call(:index, :per_page => 9999)['results'].map do |s|
28
28
  {
29
- :id => s['subnet']['id'],
30
- :network => s['subnet']['network'],
29
+ :id => s['id'],
30
+ :network => s['network'],
31
31
  }
32
32
  end
33
33
 
@@ -130,11 +130,11 @@ module HammerCliBluecat
130
130
  :uri => uri,
131
131
  :username => username,
132
132
  :password => password,
133
- :api_version => '1')
133
+ :api_version => '2')
134
134
  end
135
135
 
136
136
  def domain_ids
137
- foreman.resource(:domains).call(:index).map { |e| e['domain']['id'] }
137
+ foreman.resource(:domains).call(:index)['results'].map { |e| e['id'] }
138
138
  end
139
139
 
140
140
  def tftp_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_bluecat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Wheeler