infoblox 0.5.2 → 0.5.3

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: 9f992ed12b7d6345ec0c9d11d8cf17e607decf01
4
- data.tar.gz: 9cca5578a7172a0278b117e0b0fe5708e16dd7f6
3
+ metadata.gz: 2cac25cefe85bddd0dfd116546d1e0d37d798927
4
+ data.tar.gz: 45d5a9721911096f91dd355b52c753034c278bd4
5
5
  SHA512:
6
- metadata.gz: e2b909707ccd579cc607fc14a29d6c5f0ab11397cdc013ca545e62133690a17ffb07fe212c279893fb78c98d2a763d57e1ab92cff77fd01eb2f7091784499873
7
- data.tar.gz: 6de19870e5722c6216e949c657c989c8828dbfe3aa59678474e180ed259c9da46ed806be37c67e7bbe051a694b49c23b55bd25510e85b042198265b322ad1184
6
+ metadata.gz: b79529209b2dd338fa3dd9e884fa09cd77372a63fe915129cf999efe613a423d3071581bb0f9956c762e7fc267ce272e6490db596526e35b81c0c90ec5deb246
7
+ data.tar.gz: c53fbb76d7140679557d742108e8cbb24044d2e42f81bfcde49d57b671aa3f7ac00e13acf997d21246ecc9d799bee6ae033d565252f83237837d2ba64e6ce126
@@ -1,12 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.4
3
4
  - 2.1.6
4
5
  - 1.9.3
5
6
  - jruby-19mode
6
7
  - jruby-head
7
8
  - 1.8.7
9
+ before_install: gem install bundler
8
10
  script: bundle exec rspec
9
- notifications:
10
- webhooks: https://gd-radiator.ngrok.com/hubot/travis?room=devlab@conference.im.office.gdi
11
- on_success: change
12
- on_failure: always
@@ -26,6 +26,10 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_development_dependency "rspec"
28
28
  spec.add_development_dependency "bundler", "~> 1.3"
29
- spec.add_development_dependency "rake"
29
+ if RUBY_VERSION <= '1.8.7'
30
+ spec.add_development_dependency "rake", "~>10.4.2"
31
+ else
32
+ spec.add_development_dependency "rake"
33
+ end
30
34
  spec.add_development_dependency "pry"
31
35
  end
@@ -0,0 +1,63 @@
1
+ # Taken from https://github.com/IMPIMBA/infoblox
2
+ # Credit where credit is due.
3
+ #
4
+ module Infoblox
5
+ class Grid < Resource
6
+ remote_attr_reader :audit_to_syslog_enable,
7
+ :external_syslog_server_enable,
8
+ :password_setting,
9
+ :security_banner_setting,
10
+ :security_setting,
11
+ :snmp_setting,
12
+ :syslog_facility,
13
+ :syslog_servers,
14
+ :syslog_size
15
+
16
+ wapi_object "grid"
17
+
18
+ def delete
19
+ raise "Not supported"
20
+ end
21
+
22
+ def create
23
+ raise "Not supported"
24
+ end
25
+
26
+ def modify
27
+ raise "Not supported"
28
+ end
29
+
30
+ def self.get(connection)
31
+ JSON.parse(connection.get(resource_uri).body).map do |jobj|
32
+ klass = resource_map[jobj["_ref"].split("/").first]
33
+ if klass.nil?
34
+ puts jobj['_ref']
35
+ warn "umapped resource: #{jobj["_ref"]}"
36
+ else
37
+ klass.new(jobj.merge({:connection => connection}))
38
+ end
39
+ end.compact
40
+ end
41
+
42
+ # Example of a working post for restartservices
43
+ # POST /wapi/v1.4/grid/b25lLmNsdXN0ZXIkMA:DNSone?_function=restartservices
44
+ # &member_order=SEQUENTIALLY
45
+ # &restart_option=RESTART_IF_NEEDED
46
+ # &sequential_delay=15
47
+ # &service_option=DHCP
48
+ def restartservices(member_order="SEQUENTIALLY",
49
+ restart_option="RESTART_IF_NEEDED",
50
+ sequential_delay=15,
51
+ service_option="DHCP")
52
+
53
+ post_body = {
54
+ :member_order => member_order,
55
+ :restart_option => restart_option,
56
+ :sequential_delay => sequential_delay.to_i,
57
+ :service_option => service_option
58
+ }
59
+ JSON.parse(connection.post(resource_uri + "?_function=restartservices", post_body).body);
60
+ end
61
+
62
+ end
63
+ end
@@ -1,3 +1,3 @@
1
1
  module Infoblox
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infoblox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Billy Reisinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -116,6 +116,7 @@ files:
116
116
  - lib/infoblox/resource/arecord.rb
117
117
  - lib/infoblox/resource/cname.rb
118
118
  - lib/infoblox/resource/fixedaddress.rb
119
+ - lib/infoblox/resource/grid.rb
119
120
  - lib/infoblox/resource/host.rb
120
121
  - lib/infoblox/resource/host_ipv4addr.rb
121
122
  - lib/infoblox/resource/ipv4address.rb
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  version: '0'
162
163
  requirements: []
163
164
  rubyforge_project:
164
- rubygems_version: 2.4.5
165
+ rubygems_version: 2.4.8
165
166
  signing_key:
166
167
  specification_version: 4
167
168
  summary: This gem is a Ruby interface to the Infoblox WAPI. Using the gem, you can