class Guard::Pumadev::Manager
Public Instance Methods
restart()
click to toggle source
# File lib/guard/pumadev/manager.rb, line 7 def restart _touch_tmp_restart _notify "PumaDev restarted." end
Private Instance Methods
_notify(message)
click to toggle source
# File lib/guard/pumadev/manager.rb, line 20 def _notify(message) UI.info(message) Notifier.notify(message, title: "Pow", image: :success) end
_touch_tmp_restart()
click to toggle source
# File lib/guard/pumadev/manager.rb, line 14 def _touch_tmp_restart FileUtils.mkdir('tmp') unless File.directory?("tmp") FileUtils.touch('tmp/restart.txt') FileUtils.rm('tmp/restart.txt') end