Skip to content

Commit

Permalink
Ruby refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-coutinho committed Dec 26, 2020
1 parent ccef7da commit afa7e7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions shallow_backup/backup.py
Expand Up @@ -138,12 +138,11 @@ def run_cmd_if_no_dry_run(command, dest, dry_run) -> int:
if not dry_run:
overwrite_dir_prompt_if_needed(backup_path, skip)

for mgr in ["gem"]:
# deal with package managers that have spaces in them.
print_pkg_mgr_backup(mgr)
command = f"{mgr} list"
dest = f"{backup_path}/{mgr.replace(' ', '-')}_list.txt"
run_cmd_if_no_dry_run(command, dest, dry_run)
# ruby
print_pkg_mgr_backup(mgr)
command = f"{mgr} list"
dest = f"{backup_path}/{mgr.replace(' ', '-')}_list.txt"
run_cmd_if_no_dry_run(command, dest, dry_run)

# brew
print_pkg_mgr_backup("brew")
Expand Down

0 comments on commit afa7e7b

Please sign in to comment.