fog-bouncer 0.1.0 → 0.1.1
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.
- data/lib/fog/bouncer/sources.rb +1 -1
- data/lib/fog/bouncer/version.rb +1 -1
- data/spec/fog/bouncer_spec.rb +7 -0
- data/spec/support/security/private.rb +6 -0
- metadata +2 -2
data/lib/fog/bouncer/sources.rb
CHANGED
data/lib/fog/bouncer/version.rb
CHANGED
data/spec/fog/bouncer_spec.rb
CHANGED
@@ -41,5 +41,12 @@ describe Fog::Bouncer do
|
|
41
41
|
source.user_id.must_equal ENV['AWS_ACCOUNT_ID']
|
42
42
|
source.name.must_equal "douchebag"
|
43
43
|
end
|
44
|
+
|
45
|
+
it "doesn't create duplicate sources" do
|
46
|
+
guido = @doorlist.groups.find { |g| g.name == "guido" }
|
47
|
+
|
48
|
+
guido.sources.size.must_equal 4
|
49
|
+
guido.sources.select { |s| s.source == "douchebag@jersey_shore" }.size.must_equal 1
|
50
|
+
end
|
44
51
|
end
|
45
52
|
end
|
@@ -9,6 +9,10 @@ Fog::Bouncer.security :private do
|
|
9
9
|
tcp 22
|
10
10
|
end
|
11
11
|
|
12
|
+
define :multiple_sources, "douchebag@jersey_shore" do
|
13
|
+
tcp 70
|
14
|
+
end
|
15
|
+
|
12
16
|
use :ssh
|
13
17
|
|
14
18
|
group "douchebag", "Don't let them in!" do
|
@@ -24,6 +28,8 @@ Fog::Bouncer.security :private do
|
|
24
28
|
end
|
25
29
|
|
26
30
|
group "guido", "Definitely don't let them in!" do
|
31
|
+
use :multiple_sources
|
32
|
+
|
27
33
|
source "douchebag@jersey_shore" do
|
28
34
|
tcp 7070..8080
|
29
35
|
udp 8081
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-bouncer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|