vagrant-clusterfuck 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clusterfuck/test_helpers/command_helpers.rb +3 -1
- data/lib/clusterfuck/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb651eaf06be7a1fc69215ec94550e7225551941
|
4
|
+
data.tar.gz: 936f14fe84c4c2449dab26812fb7473ccbf9f935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00af507f591a5d03c9e25c807ff24f5d6d2e33cc9904075bca201817b0e951d224eb066a355f8c04368a055180d7bad0d1283916de8d11779a660ee1d52eddab
|
7
|
+
data.tar.gz: 8d2606d80ae23d5c9b1d0593086cfa81490f8f846ba6d223083925d920c9f758fecde4ee0bd53802c4e52133927141fe14c9508f6edf5bb9bb63103a0c45575c
|
@@ -35,9 +35,11 @@ module Clusterfuck::TestHelpers::CommandHelpers
|
|
35
35
|
@hosts_with_iptables ||= []
|
36
36
|
@hosts_with_iptables << host
|
37
37
|
|
38
|
+
device_flag = direction == 'INPUT' ? '-i' : '-o'
|
39
|
+
|
38
40
|
['tcp', 'udp'].each do |proto|
|
39
41
|
run_command(host,
|
40
|
-
"sudo iptables #{action} #{direction} -p #{proto} --dport #{port}
|
42
|
+
"sudo iptables #{action} #{direction} -p #{proto} --dport #{port} #{device_flag} #{device} -j DROP > /dev/null"
|
41
43
|
)
|
42
44
|
end
|
43
45
|
end
|
data/lib/clusterfuck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-clusterfuck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Eskildsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,3 +119,4 @@ test_files:
|
|
119
119
|
- test/machine_test.rb
|
120
120
|
- test/subnet_test.rb
|
121
121
|
- test/test_helper.rb
|
122
|
+
has_rdoc:
|