infrataster-plugin-firewall 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/.travis.yml +2 -3
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/RELEASE_NOTES.md +5 -0
- data/Rakefile +0 -0
- data/infrataster-plugin-firewall.gemspec +0 -0
- data/lib/infrataster-plugin-firewall.rb +0 -0
- data/lib/infrataster/contexts/firewall_context.rb +0 -0
- data/lib/infrataster/helpers/firewall_resource_helper.rb +0 -0
- data/lib/infrataster/plugin/firewall.rb +0 -0
- data/lib/infrataster/plugin/firewall/capture.rb +1 -0
- data/lib/infrataster/plugin/firewall/transfer.rb +7 -1
- data/lib/infrataster/plugin/firewall/util.rb +0 -0
- data/lib/infrataster/plugin/firewall/version.rb +1 -1
- data/lib/infrataster/resources/firewall_resource.rb +0 -0
- data/spec/integration/firewall_spec.rb +0 -0
- data/spec/integration/vm/Vagrantfile +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/unit/lib/infrataster/contexts/firewall_context_spec.rb +0 -0
- data/spec/unit/lib/infrataster/helpers/firewall_resource_helper_spec.rb +0 -0
- data/spec/unit/lib/infrataster/plugin/firewall/capture_spec.rb +0 -0
- data/spec/unit/lib/infrataster/plugin/firewall/transfer_spec.rb +0 -0
- data/spec/unit/lib/infrataster/plugin/firewall/util_spec.rb +0 -0
- data/spec/unit/lib/infrataster/plugin/firewall/version_spec.rb +0 -0
- data/spec/unit/lib/infrataster/resources/firewall_resource_spec.rb +0 -0
- data/spec/unit/spec_helper.rb +0 -0
- 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: 3a154953f06cc108e369c593cd0fc9b281c0a923
|
4
|
+
data.tar.gz: 72f9364487fc2031ab4ba8537df18508ea900b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4228110794e3988825298cc18acf225d0dfdeec7269a25894ecce8fa8f7a531a8dcf2323bba63ab18e2617cea557b6be14651a004ad95cfad87748ec71edf6c
|
7
|
+
data.tar.gz: 3c3a8ec0446d1bf114309268675b2f790764195e753ac5386527ec8a4b340610958240b7ab5222217467d5bece8c12a868fd524891ae49196ccbc275068f3ecf
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/RELEASE_NOTES.md
CHANGED
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,8 +26,14 @@ module Infrataster
|
|
26
26
|
|
27
27
|
def icmp_reachable?
|
28
28
|
dest_addr = Util.address(@dest_node)
|
29
|
+
uname = @src_node.server.ssh_exec('uname -s')
|
30
|
+
ping_options = '-c 1 -w 3'
|
31
|
+
case uname.chomp
|
32
|
+
when 'FreeBSD'
|
33
|
+
ping_options = '-c 1 -t 3'
|
34
|
+
end
|
29
35
|
@src_node.server
|
30
|
-
.ssh_exec("ping
|
36
|
+
.ssh_exec("ping #{ping_options} #{dest_addr} && echo PING_OK")
|
31
37
|
.include?('PING_OK')
|
32
38
|
end
|
33
39
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/unit/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infrataster-plugin-firewall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Ota
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: infrataster
|