resource: convert unpack target to Pathname.
This commit is contained in:
parent
48e4fbc8d9
commit
8ba503ebb6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user