diff options
| author | Jack Nagel | 2014-06-09 16:11:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-09 16:13:35 -0500 |
| commit | 277b38f18f1b9f6795008b9c1f2c9a500ed27801 (patch) | |
| tree | fa6b368922dfdd97efbe91d714b997fa9c63eb44 | |
| parent | 54acda3aea5ed2f4ac36fdee459d7a6ef42f4a6c (diff) | |
| download | homebrew-277b38f18f1b9f6795008b9c1f2c9a500ed27801.tar.bz2 | |
Use File.exist? instead of File.exists?
File.exists? is deprecated in Ruby 2.1+.
| -rw-r--r-- | Library/Formula/gcc.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/mysql-cluster.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb index 078f43f5d..a7293eb30 100644 --- a/Library/Formula/gcc.rb +++ b/Library/Formula/gcc.rb @@ -185,7 +185,7 @@ class Gcc < Formula "#{lib}/i386/security/classpath.security" ] config_files.each do |file| - add_suffix file, version_suffix if File.exists? file + add_suffix file, version_suffix if File.exist? file end end end diff --git a/Library/Formula/mysql-cluster.rb b/Library/Formula/mysql-cluster.rb index 59d350e1f..b9ea34059 100644 --- a/Library/Formula/mysql-cluster.rb +++ b/Library/Formula/mysql-cluster.rb @@ -86,8 +86,8 @@ class MysqlCluster < Formula (var+"mysql-cluster/ndb_data").mkpath (var+"mysql-cluster/mysqld_data").mkpath (var+"mysql-cluster/conf").mkpath - (var+"mysql-cluster/conf/my.cnf").write my_cnf unless File.exists? var+"mysql-cluster/conf/my.cnf" - (var+"mysql-cluster/conf/config.ini").write config_ini unless File.exists? var+"mysql-cluster/conf/config.ini" + (var+"mysql-cluster/conf/my.cnf").write my_cnf unless File.exist? var+"mysql-cluster/conf/my.cnf" + (var+"mysql-cluster/conf/config.ini").write config_ini unless File.exist? var+"mysql-cluster/conf/config.ini" plist_path('ndb_mgmd').write ndb_mgmd_startup_plist('ndb_mgmd') plist_path('ndb_mgmd').chmod 0644 |
