Add root_dir kwarg to Resource

This commit is contained in:
Brandon Robins
2017-11-22 23:40:23 -05:00
parent ddb1fd9c7e
commit 4f80ee2d39
4 changed files with 7 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ module Calligraphy
if @resource.is_true? options[:overwrite]
to_path = options[:destination].tap { |s| s.slice! @resource.mount_point }
to_resource = @resource.class.new resource: to_path, req: @request
to_resource = @resource.class.new resource: to_path, req: @request, root_dir: @resource.root_dir
if to_resource.exists?
to_resource.delete_collection