bugfix: set default path for limits.conf

This commit is contained in:
Christoph Hartmann 2015-09-05 20:30:00 +02:00 committed by Dominik Richter
parent 158e4ac1ab
commit 0d7d01efbd

View file

@ -4,11 +4,17 @@
require 'utils/simpleconfig'
# Usage:
#
# describe limits_conf do
# its('*') { should include ['hard','core','0'] }
# end
class LimitsConf < Vulcano.resource(1)
name 'limits_conf'
def initialize(path)
@conf_path = path
def initialize(path = nil)
@conf_path = path || '/etc/security/limits.conf'
@files_contents = {}
@content = nil
@params = nil