Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Purge empty directories that don't exist locally on SFTP upload #38

@madwort

Description

@madwort

The (rather complicated) scenario

  • I have an Amazon EC2 AMI built with a bunch of cookbooks required for production deployment
  • I am using this AMI as a base to do kitchen tests, for CI
  • the kitchen tests require slightly fewer cookbooks
  • kitchen-sync deletes the files from the excess cookbooks, but not the empty directories
  • test-kitchen gives me this ominous looking (but completely harmless) warning:
[2019-11-08T17:26:58+00:00] WARN: Cookbook 'compat_resource' is empty or entirely chefignored at /var/tmp/chef/cookbooks/compat_resource

kitchen-sync behaviour

remote directory list before:

cookbook1/files
cookbook2/files

local directory list before:

cookbook1/files

CURRENT remote directory list after:

cookbook1/files
cookbook2/

EXPECTED remote directory list after:

cookbook1/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions