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 +4 -4
- data/lib/specinfra/command/base.rb +4 -0
- data/lib/specinfra/command/linux.rb +11 -0
- data/lib/specinfra/version.rb +1 -1
- data/wercker.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7658e7fe4c67252486e77d68ac990288030c5cf0
|
|
4
|
+
data.tar.gz: c68fec3ced189e0fa2d2ef201768f3860d7c7e3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
data/lib/specinfra/version.rb
CHANGED
data/wercker.yml
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|