serverspec 2.40.0 → 2.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/helper/type.rb +1 -1
- data/lib/serverspec/type/windows_firewall.rb +28 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e340f441404e649b3cf169f7fbf52e21348b466
|
4
|
+
data.tar.gz: 1a8458cb7c527451455f499416763d5bcb8a333d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2094185422845c2de31558603f05339bf811f87dc5fb471310af45162a0f92b90c4174735cd6f1a16f0ec1791be7ed41dea4b1c662c386f9d1b8e390726669
|
7
|
+
data.tar.gz: c72dd242068272e7e6ba9496bcc600a0d02ec5c209c1d2808a9b695cfe86e3161addb5cb35cdf4ca7818883141d2a4e6451a702054cd4a3a75e7bfaa385ea76a
|
@@ -10,7 +10,7 @@ module Serverspec
|
|
10
10
|
windows_feature windows_hot_fix windows_registry_key
|
11
11
|
windows_scheduled_task zfs docker_base docker_image
|
12
12
|
docker_container x509_certificate x509_private_key
|
13
|
-
linux_audit_system hadoop_config php_extension
|
13
|
+
linux_audit_system hadoop_config php_extension windows_firewall
|
14
14
|
)
|
15
15
|
|
16
16
|
types.each {|type| require "serverspec/type/#{type}" }
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Serverspec::Type
|
2
|
+
class WindowsFirewall < Base
|
3
|
+
def exists?
|
4
|
+
@runner.check_firewall_exists(@name)
|
5
|
+
end
|
6
|
+
|
7
|
+
def tcp?
|
8
|
+
@runner.check_firewall_has_protocol(@name, 'TCP')
|
9
|
+
end
|
10
|
+
|
11
|
+
def has_localport?(port)
|
12
|
+
@runner.check_firewall_has_localport(@name, port)
|
13
|
+
end
|
14
|
+
|
15
|
+
def inbound?
|
16
|
+
@runner.check_firewall_has_direction(@name, 'Inbound')
|
17
|
+
end
|
18
|
+
|
19
|
+
def enabled?
|
20
|
+
@runner.check_firewall_is_enabled(@name)
|
21
|
+
end
|
22
|
+
|
23
|
+
def allowed?
|
24
|
+
@runner.check_firewall_has_action(@name, 'Allow')
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "rspec", "~> 3.0"
|
22
22
|
spec.add_runtime_dependency "rspec-its"
|
23
23
|
spec.add_runtime_dependency "multi_json"
|
24
|
-
spec.add_runtime_dependency "specinfra", "~> 2.
|
24
|
+
spec.add_runtime_dependency "specinfra", "~> 2.72"
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency("json", "~> 1.8") if RUBY_VERSION < "1.9"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.41.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: 2017-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.72'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.72'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/serverspec/type/service.rb
|
186
186
|
- lib/serverspec/type/user.rb
|
187
187
|
- lib/serverspec/type/windows_feature.rb
|
188
|
+
- lib/serverspec/type/windows_firewall.rb
|
188
189
|
- lib/serverspec/type/windows_hot_fix.rb
|
189
190
|
- lib/serverspec/type/windows_registry_key.rb
|
190
191
|
- lib/serverspec/type/windows_scheduled_task.rb
|