Class: Ridley::Chef::Chefignore
- Inherits:
-
Buff::Ignore::IgnoreFile
- Object
- Buff::Ignore::IgnoreFile
- Ridley::Chef::Chefignore
- Includes:
- Logging
- Defined in:
- lib/ridley/chef/chefignore.rb
Constant Summary collapse
- FILENAME =
The filename of the chefignore
'chefignore'.freeze
Instance Method Summary collapse
-
#initialize(path = Dir.pwd) ⇒ Chefignore
constructor
Create a new chefignore.
Methods included from Logging
Constructor Details
#initialize(path = Dir.pwd) ⇒ Chefignore
Create a new chefignore
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ridley/chef/chefignore.rb', line 16 def initialize(path = Dir.pwd) ignore = chefignore(path) if ignore log.debug "Using Chefignore at '#{ignore}'" else log.debug "Could not find a Chefignore at '#{path}'" end super(ignore, base: path) end |