Resolve deprecation error in Engine Yard before_restart configuration.
Resolve deprecation error in Engine Yard after_restart configuration.