resource: convert unpack target to Pathname.

This commit is contained in:
Mike McQuaid 2013-11-27 13:29:03 +00:00
parent 48e4fbc8d9
commit 8ba503ebb6

View File

@ -62,6 +62,7 @@ class Resource
if block_given?
yield self
elsif target
target = Pathname.new(target) unless target.is_a? Pathname
target.install Dir['*']
end
end