Class: Ridley::Chef::Chefignore

Inherits:
Buff::Ignore::IgnoreFile
  • Object
show all
Includes:
Logging
Defined in:
lib/ridley/chef/chefignore.rb

Constant Summary collapse

FILENAME =

The filename of the chefignore

Returns:

  • (String)
'chefignore'.freeze

Instance Method Summary collapse

Methods included from Logging

logger, #logger, set_logger

Constructor Details

#initialize(path = Dir.pwd) ⇒ Chefignore

Create a new chefignore

Parameters:

  • path (#to_s) (defaults to: Dir.pwd)

    the path to find a chefignore from (default: ‘Dir.pwd`)



16
17
18
19
20
21
22
23
24
# File 'lib/ridley/chef/chefignore.rb', line 16

def initialize(path = Dir.pwd)
  ignore = chefignore(path)

  if ignore
    log.debug "Using '#{FILENAME}' at '#{ignore}'"
  end

  super(ignore, base: path)
end