Releases: sepulworld/aptly_cli
New Package query, add, delete Commands
- Add new commands repo_package_add and repo_package_delete
Add packages to local repository
aptly-cli repo_package_add --name megatronsoftware 'Pamd64 geoipupdate
2.0.0 87f1591307e50817' 'Pi386 geoipupdate 2.0.0 87f1591307e50817'
Delete packages from local repository
aptly-cli repo_package_delete --name megatronsoftware 'Pamd64 geoipupdate 2.0.0 87f1591307e50817' 'Pi386 geoipupdate 2.0.0 87f1591307e50817'
Added package query to cli
aptly-cli repo_package_query --name megatronsoftware -query geoipupdate
Thanks @SHyx0rmZ !
Update minimum ruby to 2.1
Zmw/update gemspec minimum (#146) * update gemspec to raise minimum ruby to 2.1 * update gem
Different approach to debug_output
Test coverage 100% now as well. Thanks @msabramo!
repo_upload bug fix
repo_package_query update, no-config option
Bug fix
0.3.3 updating gem to 0.3.3 (#120)
Bug fix
New global option, and updated help output
- This adds a --port global option, which I neglected to add before.
- It also tweaks some of the descriptions in the help.
Thanks @msabramo
New prompts and configuration options, plus additional security measures
Thank you @msabramo for this contribution!
This allows not keeping usernames/passwords in the config file.
E.g.: In /etc/aptly-cli.conf:
:proto: http
:server: 10.3.0.46
:port: 8082
:debug: false
:username: ${PROMPT}
:password: ${PROMPT_PASSWORD}
The tool will prompt for the specified values, where ${PROMPT} results in a regular prompt and ${PROMPT_PASSWORD} results in a password prompt where the input is replaced by asterisks -- e.g.:
$ aptly-cli version
Enter a value for username:
zane
Enter a value for password:
{"Version"=>"0.9.7"}
This also eliminates a bunch of duplicated code in all of the command classes by having them inherit from a common base class. This was actually essential because otherwise, every required file would trigger a config load and thus prompting for any needed values over and over again.
The --config (-c) option allows specifying an alternative config file -- e.g.:
$ aptly-cli -c ~/.config/aptly-cli/aptly-cli.conf repo_list
and the --server, --username, and --password options allow specifying those things on the command-line and not even requiring a config file:
$ aptly-cli --server 10.3.0.46 --username marca --password '${PROMPT_PASSWORD}' repo_list
Note that you can use ${PROMPT} and ${PROMPT_PASSWORD} in the values of these options, just as you can in a config file.