lib/shelly/cli/backup.rb in shelly-0.1.29 vs lib/shelly/cli/backup.rb in shelly-0.1.30
- old
+ new
@@ -21,10 +21,10 @@
backups = app.database_backups
if backups.present?
limit = 0
unless options[:all] || backups.count < (Shelly::Backup::LIMIT + 1)
limit = Shelly::Backup::LIMIT - 1
- say "Limiting the number of backups to #{Shelly::Backup::LIMIT}."
+ say "Showing only #{Shelly::Backup::LIMIT} backups."
say "Use --all or -a option to list all backups."
end
to_display = [["Filename", "| Size", "| State"]]
backups[-limit..-1].each do |backup|
to_display << [backup.filename, "| #{backup.human_size}", "| #{backup.state.humanize}"]