floodgate 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/floodgate/version.rb +1 -1
- data/lib/tasks/floodgate_tasks.rake +11 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6db3e898918ad2bdc8d76a58c49135e9b2b26c0c
|
4
|
+
data.tar.gz: 3eee6c43a56b1caf16ab142843cf8acfd8d5a3e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11ce81d60f791447cf602cee84b9d1368b9edb2b86dca7869c4fb969ffe31d57e0b82a6948b95ac62daa3fb03cd90398b249211f5eb5740f0c1f80f0552c55b0
|
7
|
+
data.tar.gz: 245a574e866614ae75a24b907cc35032725457ad151505506326ac17a301107852c2cd1756830257e59206a225a49f8e09c1258b01f8789b26685709a581f9e8
|
data/lib/floodgate/version.rb
CHANGED
@@ -36,11 +36,6 @@ namespace :floodgate do
|
|
36
36
|
puts Floodgate::Client.my_ip_address
|
37
37
|
end
|
38
38
|
|
39
|
-
desc 'Add my IP Address to the list allowed through the floodgate'
|
40
|
-
task :add_mine => :environment do
|
41
|
-
Floodgate::Client.add_my_ip_address
|
42
|
-
end
|
43
|
-
|
44
39
|
desc 'Add an IP Address to allow through the floodgate'
|
45
40
|
task :add => :environment do
|
46
41
|
ip_address = ENV['ip_address']
|
@@ -48,12 +43,23 @@ namespace :floodgate do
|
|
48
43
|
Floodgate::Client.add_ip_address(ip_address)
|
49
44
|
end
|
50
45
|
|
46
|
+
desc 'Add my IP Address to the list allowed through the floodgate'
|
47
|
+
task :add_mine => :environment do
|
48
|
+
Floodgate::Client.add_my_ip_address
|
49
|
+
end
|
50
|
+
|
51
51
|
desc 'Remove an IP Address from the list allowed through the floodgate'
|
52
52
|
task :remove => :environment do
|
53
53
|
ip_address = ENV['ip_address']
|
54
54
|
|
55
55
|
Floodgate::Client.remove_ip_address(ip_address)
|
56
56
|
end
|
57
|
+
|
58
|
+
desc 'Remove my IP Address from the list allowed through the floodgate'
|
59
|
+
task :remove_mine => :environment do
|
60
|
+
Floodgate::Client.remove_my_ip_address
|
61
|
+
end
|
62
|
+
|
57
63
|
end
|
58
64
|
end
|
59
65
|
|