SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
sysutils/ruby-facter/files/facts/networking/interfaces.rb
Normal file
17
sysutils/ruby-facter/files/facts/networking/interfaces.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Facts
|
||||
module Openbsd
|
||||
module Networking
|
||||
class Interfaces
|
||||
FACT_NAME = 'networking.interfaces'
|
||||
|
||||
def call_the_resolver
|
||||
fact_value = Facter::Resolvers::Networking.resolve(:interfaces)
|
||||
|
||||
Facter::ResolvedFact.new(FACT_NAME, fact_value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue