Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to clean to clean cache and pkg #129

Open
glensc opened this issue Sep 9, 2015 · 0 comments
Open

option to clean to clean cache and pkg #129

glensc opened this issue Sep 9, 2015 · 0 comments
Labels

Comments

@glensc
Copy link
Contributor

glensc commented Sep 9, 2015

would be nice for clean command to have option to clean also cache and pkg dirs.

# ls -l
total 12K
-rw-rw-r-- 1 vagrant vagrant 251 Sep  9 10:56 admin.rb
-rw-rw-r-- 1 vagrant vagrant 242 Sep  8 12:09 fe.rb
-rw-rw-r-- 1 vagrant vagrant 221 Sep  9 10:54 recipe.rb

# fpm-cook package -p centos
...

# ls -l
total 12
-rw-rw-r-- 1 vagrant vagrant 251 Sep  9 10:56 admin.rb
drwxrwxr-x 1 vagrant vagrant  18 Sep  9 10:58 cache/
-rw-rw-r-- 1 vagrant vagrant 242 Sep  8 12:09 fe.rb
drwxrwxr-x 1 vagrant vagrant  89 Sep  9 10:58 pkg/
-rw-rw-r-- 1 vagrant vagrant 221 Sep  9 10:54 recipe.rb
drwxrwxr-x 1 vagrant vagrant  18 Sep  9 10:58 tmp-build/
drwxrwxr-x 1 vagrant vagrant   6 Sep  9 10:58 tmp-dest/

# fpm-cook clean -p centos 
===> Cleanup!

# ls -l
total 12
-rw-rw-r-- 1 vagrant vagrant 251 Sep  9 10:56 admin.rb
drwxrwxr-x 1 vagrant vagrant  18 Sep  9 10:58 cache/
-rw-rw-r-- 1 vagrant vagrant 242 Sep  8 12:09 fe.rb
drwxrwxr-x 1 vagrant vagrant  89 Sep  9 10:58 pkg/
-rw-rw-r-- 1 vagrant vagrant 221 Sep  9 10:54 recipe.rb

# fpm-cook clean -p centos --help
Usage:
    fpm-cook clean [OPTIONS] [RECIPE]

Parameters:
    [RECIPE]                      the recipe file (default: "recipe.rb")

Options:
    -c, --color                   toggle color
    -D, --debug                   enable debug output
    -t, --target TARGET           set desired fpm output target (deb, rpm, etc)
    -p, --platform PLATFORM       set the target platform (centos, ubuntu, debian)
    -q, --quiet                   Disable verbose output like progress bars
    -V, --version                 show fpm-cookery and fpm version
    --[no-]deps                   enable/disable dependency checking
    --tmp-root DIR                directory root for temporary files
    --pkg-dir DIR                 directory for built packages
    --cache-dir DIR               directory for downloaded sources
    --skip-package                do not call FPM to build the package
    -h, --help                    print help
@bernd bernd added the feature label Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants