Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
require the at option when scheduling backups
Browse files Browse the repository at this point in the history
  • Loading branch information
Rimas Silkaitis committed Apr 2, 2015
1 parent 5e57167 commit 1a5ee19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/heroku/command/pg_backups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ def cancel_backup
def schedule_backups
db = shift_argument
validate_arguments!
at = options[:at] || '04:00 UTC'
if !options[:at]
error("A time must be specified when scheduling backups")
end
at = options[:at]
schedule_opts = parse_schedule_time(at)

resolver = generate_resolver
Expand Down

0 comments on commit 1a5ee19

Please sign in to comment.