class Inspec::Resources::EtcHostsDeny

Public Class Methods

new(path = nil) click to toggle source
Calls superclass method Inspec::Resources::EtcHostsAllow::new
# File lib/inspec/resources/etc_hosts_allow_deny.rb, line 104
def initialize(path = nil)
  return skip_resource "`etc_hosts_deny` is not supported on your OS" unless inspec.os.linux?

  super(path || "/etc/hosts.deny")
end

Public Instance Methods

to_s() click to toggle source
# File lib/inspec/resources/etc_hosts_allow_deny.rb, line 110
def to_s
  "hosts.deny Configuration"
end