Skip to content

Commit

Permalink
Correct a rubocop deprecation Warning (File.exists? is deprecated in …
Browse files Browse the repository at this point in the history
…favor of File.exist?)
  • Loading branch information
sinfomicien committed Sep 19, 2014
1 parent fc7d991 commit 9e25f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
execute 'install-grants' do
command '/bin/bash /etc/mariadb_grants \'' + \
node['mariadb']['server_root_password'] + '\''
only_if { File.exists?('/etc/mariadb_grants') }
only_if { File.exist?('/etc/mariadb_grants') }
action :nothing
end

Expand Down

0 comments on commit 9e25f51

Please sign in to comment.