Method: Inspec::Resources::IpTables#initialize

Defined in:
lib/resources/iptables.rb

#initialize(params = {}) ⇒ IpTables

Returns a new instance of IpTables.



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/resources/iptables.rb', line 34

def initialize(params = {})
  @table = params[:table]
  @chain = params[:chain]

  # we're done if we are on linux
  return if inspec.os.linux?

  # ensures, all calls are aborted for non-supported os
  @iptables_cache = []
  skip_resource 'The `iptables` resource is not supported on your OS yet.'
end