Sha256: 17974351bd03c2c1925aa43b76b5d4bff82a75e52697dc805f436bc2233fb87c
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
require 'fileutils' module Guard class Pumadev class Manager def restart _touch_tmp_restart _notify "PumaDev restarted." end private def _touch_tmp_restart FileUtils.mkdir('tmp') unless File.directory?("tmp") FileUtils.touch('tmp/restart.txt') FileUtils.rm('tmp/restart.txt') end def _notify(message) UI.info(message) Notifier.notify(message, title: "Pow", image: :success) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-pumadev-2.0.1 | lib/guard/pumadev/manager.rb |