Method: Inspec::Resources::AptRepository#enabled?
- Defined in:
- lib/resources/apt.rb
#enabled? ⇒ Boolean
57 58 59 60 61 62 |
# File 'lib/resources/apt.rb', line 57 def enabled? return false if find_repo.count == 0 actives = find_repo.map { |repo| repo[:active] } actives = actives.uniq actives.size == 1 && actives[0] = true end |