mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
bugfix: set default path for inetd_conf
This commit is contained in:
parent
fb3b4b1369
commit
d40ab9a9ad
1 changed files with 10 additions and 2 deletions
|
@ -4,11 +4,19 @@
|
|||
|
||||
require 'utils/simpleconfig'
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# describe inetd_conf do
|
||||
# its('shell') { should eq nil }
|
||||
# its('login') { should eq nil }
|
||||
# its('exec') { should eq nil }
|
||||
# end
|
||||
|
||||
class InetdConf < Vulcano.resource(1)
|
||||
name 'inetd_config'
|
||||
|
||||
def initialize(path)
|
||||
@conf_path = path
|
||||
def initialize(path = nil)
|
||||
@conf_path = path || '/etc/inetd.conf'
|
||||
@files_contents = {}
|
||||
@content = nil
|
||||
@params = nil
|
||||
|
|
Loading…
Add table
Reference in a new issue