Class: Inspec::Resources::EtcHostsDeny
- Inherits:
-
EtcHostsAllow
- Object
- EtcHostsAllow
- Inspec::Resources::EtcHostsDeny
- Defined in:
- lib/resources/etc_hosts_allow_deny.rb
Instance Attribute Summary
Attributes inherited from EtcHostsAllow
Instance Method Summary collapse
-
#initialize(path = nil) ⇒ EtcHostsDeny
constructor
A new instance of EtcHostsDeny.
- #to_s ⇒ Object
Methods included from CommentParser
Constructor Details
#initialize(path = nil) ⇒ EtcHostsDeny
Returns a new instance of EtcHostsDeny.
114 115 116 117 |
# File 'lib/resources/etc_hosts_allow_deny.rb', line 114 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 |
Instance Method Details
#to_s ⇒ Object
119 120 121 |
# File 'lib/resources/etc_hosts_allow_deny.rb', line 119 def to_s 'hosts.deny Configuration' end |