Sha256: 6cbd513db98df552bed88af07d497e8d15cdb4e0dc2fcd82801a6b2f99763b05
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'fileutils' module Guard class Pow class Manager def restart _touch_tmp_restart _notify "Pow restarted." end private def _touch_tmp_restart FileUtils.mkdir('tmp') unless File.directory?("tmp") FileUtils.touch('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-pow-2.0.0 | lib/guard/pow/manager.rb |