scalate: use Pathname#find instead of loading Find

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-08-19 19:25:15 -05:00
parent c2d7352f80
commit ae3c76a4e0
1 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,4 @@
require 'formula'
require 'find'
class Scalate < Formula
homepage 'http://scalate.fusesource.org/'
@ -19,11 +18,7 @@ class Scalate < Formula
# Recursively fix the permissions of extracted regular files
# excluding the bin directory contents.
%w{ archetypes docs lib samples license.txt readme.html }.each do |name|
Find.find(name) do |path|
if File.file?(path)
File.chmod(0644, path)
end
end
Pathname.new(name).find { |path| path.chmod(0644) if path.file? }
end
prefix.install %w{ license.txt readme.html }