Method: Inspec::Resources::Shadow#initialize
- Defined in:
- lib/resources/shadow.rb
#initialize(path = '/etc/shadow', opts = {}) ⇒ Shadow
Returns a new instance of Shadow.
39 40 41 42 43 |
# File 'lib/resources/shadow.rb', line 39 def initialize(path = '/etc/shadow', opts = {}) @opts = opts @path = path || '/etc/shadow' @filters = @opts[:filters] || '' end |