Class: Specinfra::HostInventory::IptablesFilter

Inherits:
IptablesBase
  • Object
show all
Defined in:
lib/pullmatic/resource/network.rb

Instance Method Summary collapse

Methods inherited from IptablesBase

#parse

Instance Method Details

#getObject



107
108
109
110
111
112
113
114
115
# File 'lib/pullmatic/resource/network.rb', line 107

def get
  cmd = backend.command.get(:get_inventory_iptables_filter)
  ret = backend.run_command(cmd)
  if ret.exit_status == 0
    parse(ret.stdout)
  else
    nil
  end
end