Method: Chef::Compliance::InputCollection#include_input
- Defined in:
- lib/chef/compliance/input_collection.rb
#include_input(arg) ⇒ Object
DSL method to enable input files. This matches on the filename of the input file. If the specific input is omitted then it uses the default input. The string supports regular expression matching.
include_input "acme_cookbook::ssh-001"
include_input "acme_cookbook"
include_input "acme_cookbook::.*"
include_input "acme_cookbook::ssh.*"
include_input ".::ssh."
include_input({ "ssh_custom_path": "/usr/local/bin" })
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/chef/compliance/input_collection.rb', line 91 def include_input(arg) raise "include_input was given a nil value" if arg.nil? # if we're given a hash argument just shove it in the raw_hash if arg.is_a?(Hash) from_hash(arg) return end matching_inputs(arg).each(&:enable!) end |