class Librarian::Chef::Source::Git

Private Instance Methods

install_perform_step_copy!(found_path, install_path) click to toggle source
# File lib/librarian/chef/source/git.rb, line 12
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)

  if environment.config_db["install.strip-dot-git"] == "1"
    dot_git = install_path.join(".git")
    dot_git.rmtree if dot_git.directory?
  end
end