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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c99bfd81a0935e4507ad2e97d7b11cb127846cdf
4
- data.tar.gz: ee08c1f30fae807dbcc6066afb79051a26fac55f
3
+ metadata.gz: bb651eaf06be7a1fc69215ec94550e7225551941
4
+ data.tar.gz: 936f14fe84c4c2449dab26812fb7473ccbf9f935
5
5
  SHA512:
6
- metadata.gz: a4f16e7144db5a3800363beb09f236581f56e6c0a979c2d5a2a835b67f70a02926ba275ef9acb65a3aa7d4d8871d962775009ae3c991568f712c719b52a87d7c
7
- data.tar.gz: 2c334a1df943f88cf762c1c215fb105f54157d0e792eb907eef329b3a23169efdf97cb7f1f955bdb715962ae19e5edc996fdf7ea60a0495520be1a1d0434b285
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} -o #{device} -j DROP > /dev/null"
42
+ "sudo iptables #{action} #{direction} -p #{proto} --dport #{port} #{device_flag} #{device} -j DROP > /dev/null"
41
43
  )
42
44
  end
43
45
  end
@@ -1,3 +1,3 @@
1
1
  module Clusterfuck
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-21 00:00:00.000000000 Z
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: