Method: Inspec::FetcherRegistry#fetcher_specified?
- Defined in:
- lib/inspec/fetcher.rb
#fetcher_specified?(target) ⇒ Boolean
15 16 17 18 19 20 21 22 |
# File 'lib/inspec/fetcher.rb', line 15 def fetcher_specified?(target) # Only set a default for Hash-based (i.e. from # inspec.yml/inspec.lock) targets return true unless target.respond_to?(:keys) !(target.keys - NON_FETCHER_KEYS).empty? end |