aptible / aptible-cli

Command line interface to Aptible
MIT License
28 stars 35 forks source link

Add backup_retention_policy get and set commands #332

Closed joshraker closed 3 months ago

joshraker commented 3 months ago

Adds backup_retention_policy (get) and backup_retention_policy:set commands. If there is no custom backup retention policy on the environment, the get command renders a policy that represents the default policy like app-ui does. e.g.

> aptible backup_retention_policy no-policy
Id: default
Daily: 90
Monthly: 72
Yearly: 0
Make Copy: true
Keep Final: true
Environment: no-policy

Last minute items:

joshraker commented 3 months ago

https://app.shortcut.com/aptible/story/25061/add-backup-retention-policy-cli-commands

joshraker commented 3 months ago

should the minimum aptible-api version in the gemspec be updated? Seems like it's not critical since we haven't done it in a while though

I considered it and that would probably be best going forward but I don't care enough to send this PR through another review cycle.

joshraker commented 3 months ago

@UserNotFound ready for final review.