Skip to content

Releases: sepulworld/aptly_cli

New Package query, add, delete Commands

23 Sep 03:43
Compare
Choose a tag to compare
  • 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

26 Jul 04:39
Compare
Choose a tag to compare
Zmw/update gemspec minimum (#146)

* update gemspec to raise minimum ruby to 2.1

* update gem

Different approach to debug_output

26 Jul 03:42
Compare
Choose a tag to compare

Test coverage 100% now as well. Thanks @msabramo!

repo_upload bug fix

23 Jul 17:00
Compare
Choose a tag to compare

Fix repo_upload failure handling (#135)

  • a 404 response previously would output a message to stdout but then
    continue to try to parse JSON, which would fail.
  • the FailedFiles and Warnings code never got executed because it
    was in rescue blocks that don't get triggered.

Thanks @msabramo!

repo_package_query update, no-config option

23 Jul 08:07
Compare
Choose a tag to compare
  • Make repo_package_query work w/ multiple options #124
  • Add --no-config option #122

Thank you @msabramo

Bug fix

23 Jul 01:36
Compare
Choose a tag to compare
0.3.3

updating gem to 0.3.3 (#120)

Bug fix

23 Jul 01:32
Compare
Choose a tag to compare

New global option, and updated help output

22 Jul 02:00
Compare
Choose a tag to compare
  • 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

19 Jul 02:39
Compare
Choose a tag to compare

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.

Add HTTPS Support Option

10 Jun 15:19
Compare
Choose a tag to compare