mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
bugfix: indicate that file resource is really working with paths
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
9e79b49f43
commit
e0e7fb8996
2 changed files with 11 additions and 0 deletions
10
lib/resources/file.rb
Normal file
10
lib/resources/file.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Copyright (c) 2015 Vulcano Security GmbH. All rights reserved.
|
||||
module Serverspec::Type
|
||||
class File < Base
|
||||
# Overwrite the to_s method to show path
|
||||
# instead of type
|
||||
def to_s
|
||||
%Q.Path "#{@name}".
|
||||
end
|
||||
end
|
||||
end
|
|
@ -8,6 +8,7 @@ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|||
require 'utils/spec_helper'
|
||||
|
||||
require 'resources/audit_policy'
|
||||
require 'resources/file'
|
||||
require 'resources/group_policy'
|
||||
require 'resources/mysql_conf'
|
||||
require 'resources/mysql_session'
|
||||
|
|
Loading…
Reference in a new issue