class Tagrity::Command::Stop
Public Class Methods
call(dir)
click to toggle source
# File lib/tagrity/commands/stop.rb, line 9 def call(dir) pid_files = PidFile.alive_pid_files(dir: dir) if pid_files.empty? puts ::CLI::UI.fmt "{{red:#{"😕 tagrity doesn't seem to be watching #{dir}"}}}" else pid_files.each do |pid_file| pid_file.delete msg = "Successfully killed #{pid_file.pid} for dir #{dir}" puts ::CLI::UI.fmt "{{green:#{msg}}}" logger.info(msg) end end end
logger()
click to toggle source
# File lib/tagrity/commands/stop.rb, line 23 def logger @logger ||= Provider.provide(:tlogger) end