aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/sandbox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/sandbox.rb')
-rw-r--r--Library/Homebrew/sandbox.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb
index dece2e4a5..9392b7122 100644
--- a/Library/Homebrew/sandbox.rb
+++ b/Library/Homebrew/sandbox.rb
@@ -42,25 +42,25 @@ class Sandbox
end
def allow_write(path, options = {})
- add_rule :allow => true, :operation => "file-write*", :filter => path_filter(path, options[:type])
+ add_rule allow: true, operation: "file-write*", filter: path_filter(path, options[:type])
end
def deny_write(path, options = {})
- add_rule :allow => false, :operation => "file-write*", :filter => path_filter(path, options[:type])
+ add_rule allow: false, operation: "file-write*", filter: path_filter(path, options[:type])
end
def allow_write_path(path)
- allow_write path, :type => :subpath
+ allow_write path, type: :subpath
end
def deny_write_path(path)
- deny_write path, :type => :subpath
+ deny_write path, type: :subpath
end
def allow_write_temp_and_cache
allow_write_path "/private/tmp"
allow_write_path "/private/var/tmp"
- allow_write "^/private/var/folders/[^/]+/[^/]+/[C,T]/", :type => :regex
+ allow_write "^/private/var/folders/[^/]+/[^/]+/[C,T]/", type: :regex
allow_write_path HOMEBREW_TEMP
allow_write_path HOMEBREW_CACHE
end
@@ -111,7 +111,7 @@ class Sandbox
logs = Utils.popen_read("syslog", *syslog_args)
# These messages are confusing and non-fatal, so don't report them.
- logs = logs.lines.reject{ |l| l.match(/^.*Python\(\d+\) deny file-write.*pyc$/) }.join
+ logs = logs.lines.reject { |l| l.match(/^.*Python\(\d+\) deny file-write.*pyc$/) }.join
unless logs.empty?
if @logfile