chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::ChefFS::FilePattern#could_match_children?
Reports whether this pattern could match children of <tt>path</tt>.
If the pattern doesn't match the path up to this point or
if it matches and doesn't allow further children, this will
return <tt>false</tt>.
==== Attributes
* +path+ - a path to check
==== Examples
abc/def.could_match_children?('abc') == true
abc.could_match_children?('abc') == false
abc/def.could_match_children?('x') == false
a**z.could_match_children?('ab/cd') == trueEdit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/chef_fs/file_pattern.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--ChefFS--FilePattern-could_match_children--for-pr
# Commit to gitgit add lib/chef/chef_fs/file_pattern.rbgit commit -m "better docs for Chef::ChefFS::FilePattern#could_match_children?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--ChefFS--FilePattern-could_match_children--for-pr
hub pull-request
# Celebrate!