specinfra 1.26.0 → 1.27.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: 38340f2ab0fa6f2bb429b18c11f7b66ab4684d8a
4
- data.tar.gz: ae98d7b97ccc70c47666f67b12722e04cedc0f7c
3
+ metadata.gz: 7658e7fe4c67252486e77d68ac990288030c5cf0
4
+ data.tar.gz: c68fec3ced189e0fa2d2ef201768f3860d7c7e3e
5
5
  SHA512:
6
- metadata.gz: b32c5e713056475d8c5dfc51e5b13724fb14b0d08aa073edc7db798df425dd7251be359aae3130c2b10677362ff057451600efe9c3eb5b56a30bfdb5d8542dc5
7
- data.tar.gz: 864c9350cdc8e6b2a9326af749126e9de92d937c3320c8e144a9d3c92f2c9e004fc8578127f0983a64a4f5e9cbe53719b9f054f3d965e0a58324132a348564f9
6
+ metadata.gz: c4ea2d208cd76f18efad1c414023bac31f75d460497e164284212623b4ff1e68a05a7f696844dee21ee7f323253371141d1310043c9b15fec1798be78f8174c0
7
+ data.tar.gz: a4b7e852f0ee01390ee3d22162b5cfb77d3a4a4a8fc8903a313c950e54212dbdc7c4c2ba4e12bdeea5d45408f66dd9e4bb925c8aad089ec00e5485a2f6b2ef91
@@ -332,6 +332,10 @@ module SpecInfra
332
332
  def check_ipv4_address(interface, ip_address)
333
333
  raise NotImplementedError.new
334
334
  end
335
+
336
+ def check_ipv6_address(interface, ip_address)
337
+ raise NotImplementedError.new
338
+ end
335
339
 
336
340
  def check_mail_alias(recipient, target)
337
341
  target = "[[:space:]]#{target}"
@@ -56,6 +56,17 @@ module SpecInfra
56
56
  ip_address.gsub!(".", "\\.")
57
57
  "ip addr show #{interface} | grep 'inet #{ip_address}'"
58
58
  end
59
+
60
+ def check_ipv6_address(interface, ip_address)
61
+ ip_address = ip_address.dup
62
+ if ip_address =~ /\/\d+$/
63
+ ip_address << " "
64
+ else
65
+ ip_address << "/"
66
+ end
67
+ ip_address.downcase!
68
+ "ip addr show #{interface} | grep 'inet6 #{ip_address}'"
69
+ end
59
70
 
60
71
  def check_zfs(zfs, property=nil)
61
72
  if property.nil?
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.26.0"
2
+ VERSION = "1.27.0"
3
3
  end
data/wercker.yml CHANGED
@@ -1,4 +1,4 @@
1
- box: mizzy/serverspec-base@0.0.3
1
+ box: mizzy/serverspec-base@0.0.5
2
2
  build:
3
3
  steps:
4
4
  - script:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-31 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler