lib/librarian/chef/source/local.rb in librarian-0.0.23 vs lib/librarian/chef/source/local.rb in librarian-0.0.24

- old
+ new

@@ -17,12 +17,11 @@ if install_path.exist? debug { "Deleting #{relative_path_to(install_path)}" } install_path.rmtree end - debug { "Copying #{relative_path_to(found_path)} to #{relative_path_to(install_path)}" } - FileUtils.cp_r(found_path, install_path) + install_perform_step_copy!(found_path, install_path) end def fetch_version(name, extra) manifest_data(name)["version"] end @@ -30,9 +29,14 @@ def fetch_dependencies(name, version, extra) manifest_data(name)["dependencies"] end private + + def install_perform_step_copy!(found_path, install_path) + debug { "Copying #{relative_path_to(found_path)} to #{relative_path_to(install_path)}" } + FileUtils.cp_r(found_path, install_path) + end def manifest_data(name) @manifest_data ||= { } @manifest_data[name] ||= fetch_manifest_data(name) end