Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/berkshelf/core_ext/file.rb
Class Method Summary collapse
-
.cookbook?(path) ⇒ Boolean
(also: chef_cookbook?)
Returns true or false if the given path is a Chef Cookbook.
Class Method Details
.cookbook?(path) ⇒ Boolean Also known as: chef_cookbook?
Returns true or false if the given path is a Chef Cookbook
9 10 11 |
# File 'lib/berkshelf/core_ext/file.rb', line 9 def cookbook?(path) File.exists?(File.join(path, 'metadata.rb')) end |