Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace all occurrences of File.exists? with File.exist?
Summary: Every time I go to use `File.exist?` I think to myself, "Which is it, `File.exists?` or `File.exist?`," and I go do a big grep search to discover that it's.... both? Well, according to the [ruby docs](https://ruby-doc.org/core-2.2.0/File.html#exist-3F-method), `File.exists?` is deprecated. So as a gift to my future self who will be doing an big grep in the future, this diff will replace all instances of `File.exists?` with `File.exist?` in cpe_* cookbooks. Also, same thing for `Dir.exists?` => `Dir.exist?` Reviewed By: gbatye, steelcowboy Differential Revision: D21507238 fbshipit-source-id: 307533d148963088a84c0f5089ad708ba57a1239
- Loading branch information
1 parent
5d1b850
commit 5e0bce5
Showing
4 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters