aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec/support/file_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/spec/support/file_helper.rb')
-rw-r--r--Library/Homebrew/cask/spec/support/file_helper.rb16
1 files changed, 4 insertions, 12 deletions
diff --git a/Library/Homebrew/cask/spec/support/file_helper.rb b/Library/Homebrew/cask/spec/support/file_helper.rb
index 8eb78f759..abe7b2618 100644
--- a/Library/Homebrew/cask/spec/support/file_helper.rb
+++ b/Library/Homebrew/cask/spec/support/file_helper.rb
@@ -1,16 +1,8 @@
module FileHelper
- class << self
- def local_binary_path(name)
- File.expand_path(File.join(File.dirname(__FILE__), "binaries", name))
- end
+ module_function
- def local_binary_url(name)
- "file://" + local_binary_path(name)
- end
-
- def valid_alias?(candidate)
- return false unless candidate.symlink?
- candidate.readlink.exist?
- end
+ def valid_alias?(candidate)
+ return false unless candidate.symlink?
+ candidate.readlink.exist?
end
end