sandboxer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sandbox.rb +3 -3
- metadata +3 -3
data/lib/sandbox.rb
CHANGED
@@ -26,7 +26,7 @@ require 'digest/md5'
|
|
26
26
|
|
27
27
|
|
28
28
|
class Sandbox
|
29
|
-
VERSION = '0.1.
|
29
|
+
VERSION = '0.1.2'
|
30
30
|
def initialize
|
31
31
|
@debug = false
|
32
32
|
@sandbox = '/etc/hosts-sandbox'
|
@@ -184,8 +184,8 @@ class Sandbox
|
|
184
184
|
end
|
185
185
|
}
|
186
186
|
update_sandbox { | entries | entries << "#{domain} #{ip}" }
|
187
|
+
enable if :on == get_status
|
187
188
|
puts "Added '#{domain} #{ip}'"
|
188
|
-
status
|
189
189
|
end
|
190
190
|
|
191
191
|
def remove domain
|
@@ -195,8 +195,8 @@ class Sandbox
|
|
195
195
|
entries = entries.delete entry
|
196
196
|
end
|
197
197
|
}
|
198
|
+
enable if :on == get_status
|
198
199
|
puts "Removed '#{domain}'"
|
199
|
-
status
|
200
200
|
end
|
201
201
|
|
202
202
|
def get_destination
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sandboxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Shreve
|