coderanger / kitchen-sync

Test Kitchen transport plugin to speed up tests.
Apache License 2.0
81 stars 24 forks source link

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

Open madwort opened 4 years ago

madwort commented 4 years ago

The (rather complicated) scenario

[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