Class: Facts::Linux::Hypervisors::Docker
- Inherits:
-
Object
- Object
- Facts::Linux::Hypervisors::Docker
- Defined in:
- lib/facter/facts/linux/hypervisors/docker.rb
Constant Summary collapse
- FACT_NAME =
'hypervisors.docker'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
9 10 11 12 |
# File 'lib/facter/facts/linux/hypervisors/docker.rb', line 9 def call_the_resolver fact_value = check_docker Facter::ResolvedFact.new(FACT_NAME, fact_value) end |
#check_docker ⇒ Object
14 15 16 17 |
# File 'lib/facter/facts/linux/hypervisors/docker.rb', line 14 def check_docker info = Facter::Resolvers::Containers.resolve(:hypervisor) info[:docker] if info end |