Class: PMD::Restart

Inherits:
Object
  • Object
show all
Defined in:
lib/pmd/restart.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRestart

Returns a new instance of Restart.



7
8
9
# File 'lib/pmd/restart.rb', line 7

def initialize

end

Class Method Details

.restartedObject



11
12
13
14
15
16
17
18
# 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

Instance Method Details

#execute!Object



20
21
22
# File 'lib/pmd/restart.rb', line 20

def execute!
  FileUtils.touch Config.restart_path
end