class Pullmatic::Resource::Network

Public Class Methods

execute() click to toggle source
# File lib/pullmatic/resource/network.rb, line 4
def self.execute
  self.new.execute
end

Public Instance Methods

execute() click to toggle source
# File lib/pullmatic/resource/network.rb, line 8
def execute
  hosts = host_inventory['hosts']
  filter = host_inventory['iptables_filter']
  nat = host_inventory['iptables_nat']
  resolv = host_inventory['resolv']
  {:hosts => hosts, :iptables => {:filter => filter, :nat => nat}, :resolv => resolv}
end