resource: convert unpack target to Pathname.
This commit is contained in:
parent
48e4fbc8d9
commit
8ba503ebb6
@ -62,6 +62,7 @@ class Resource
|
|||||||
if block_given?
|
if block_given?
|
||||||
yield self
|
yield self
|
||||||
elsif target
|
elsif target
|
||||||
|
target = Pathname.new(target) unless target.is_a? Pathname
|
||||||
target.install Dir['*']
|
target.install Dir['*']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user