class PMD::Restart

Public Class Methods

new() click to toggle source
# File lib/pmd/restart.rb, line 7
def initialize

end
restarted() click to toggle source
# File lib/pmd/restart.rb, line 11
def self.restarted
  if File.exists? Config.restart_path
    FileUtils.rm Config.restart_path
    return true
  else
    return false
  end
end

Public Instance Methods

execute!() click to toggle source
# File lib/pmd/restart.rb, line 20
def execute!
  FileUtils.touch Config.restart_path
end