Blame view
tests/cleanup.t
1.1 KB
|
c46b6673e
|
1 2 3 4 |
Firstly, no plugins, nothing to cleanup.
$ antigen-cleanup --force
You don't have any bundles.
|
|
af81e3312
|
5 |
Load the plugins. |
|
01590aa28
|
6 |
|
|
98dc8bb90
|
7 8 |
$ antigen-bundle $PLUGIN_DIR &> /dev/null
$ antigen-bundle $PLUGIN_DIR2 &> /dev/null
|
|
01590aa28
|
9 10 11 12 |
Check the listing.
$ antigen-list
|
|
0efbfc326
|
13 |
*/test-plugin / plugin true (glob) |
|
af81e3312
|
14 |
*/test-plugin2 / plugin true (glob) |
|
01590aa28
|
15 |
|
|
c46b6673e
|
16 17 18 19 |
Nothing should be available for cleanup.
$ antigen-cleanup --force
You don't have any unidentified bundles.
|
|
01590aa28
|
20 21 22 23 24 25 26 27 28 29 30 31 32 |
Clear out the bundles record.
$ _ANTIGEN_BUNDLE_RECORD=""
Check the listing, after clearing the record.
$ antigen-list
You don't have any bundles.
[1]
Confirm the plugin directory exists.
$ ls dot-antigen/repos | wc -l
|
|
af81e3312
|
33 |
2 |
|
01590aa28
|
34 35 36 37 38 39 |
Do the cleanup.
$ antigen-cleanup --force
You have clones for the following repos, but are not used.
*/test-plugin (glob)
|
|
af81e3312
|
40 |
*/test-plugin2 (glob) |
|
01590aa28
|
41 42 43 |
Deleting clone for */test-plugin... done. (glob)
|
|
af81e3312
|
44 |
Deleting clone for */test-plugin2... done. (glob) |
|
01590aa28
|
45 46 47 48 49 50 51 52 53 54 55 |
Check the listing, after cleanup.
$ antigen-list
You don't have any bundles.
[1]
Confirm the plugin directory does not exist after cleanup.
$ ls dot-antigen/repos | wc -l
0
|