There is not in the Rails application itself, however there is a tool called foreman-maintain which is kind of a set of helper utilitites in one and it does have similar thing:
It basically sets up firewall so Foreman is not available tho and that’s it. This is used in large-scaled environments when clients check in so many times it’s not possible to do anything with the app basically if I am not mistaken.
repositories against - in my case - CentOS repositories. But any off site repositories in general. I think it would be valuable to have a “don’t sync while in maintenance mode” option. The other options are:
turn off foreman
turn off networking on the server
turn off the server
delete all the current sync rules and re-write them later.
Seems like four over kill solutions to the problem of “just don’t sync this weekend please”