bugfix: indicate that file resource is really working with paths

Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
Dominik Richter 2015-06-21 11:23:30 +02:00
parent 9e79b49f43
commit e0e7fb8996
2 changed files with 11 additions and 0 deletions

10
lib/resources/file.rb Normal file
View 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

View file

@ -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'