Use File.exist? instead of File.exists?
File.exists? is deprecated in Ruby 2.1+.
This commit is contained in:
parent
843efcdca0
commit
c7c34312c8
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue