def capture(options = { maintenance_mode: false, target_db: nil })
      # Enable maintenance mode if set
      HerokuCLI.cmd("maintenance:on", @app_name) if options[:maintenance_mode]

      HerokuCLI.cmd("pg:backups:capture #{options[:target]}", @app_name)

      # Turn off maintenance mode once capture is complete
      HerokuCLI.cmd("maintenance:off", @app_name) if options[:maintenance_mode]
    end
def capture(options = { maintenance_mode: false, target_db: nil })
      # Enable maintenance mode if set
      HerokuCLI.cmd("maintenance:on", @app_name) if options[:maintenance_mode]

      HerokuCLI.cmd("pg:backups:capture #{options[:target]}", @app_name)

      # Turn off maintenance mode once capture is complete
      HerokuCLI.cmd("maintenance:off", @app_name) if options[:maintenance_mode]
    end
Creates a new Heroku backup for a particular moment in time
 Valid options:
 => {boolean} maintenance_mode - If true, set the application to go into
    maintenance mode to prevent further interaction until the capture is
    complete
 => {string?} target_db - If a target is set, a backup will be pulled from there,
    otherwise, we'll pull from the default DB
 @param {hash} options
 @return nil