Class: PMD::Restart
- Inherits:
-
Object
- Object
- PMD::Restart
- Defined in:
- lib/pmd/restart.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize ⇒ Restart
constructor
A new instance of Restart.
Constructor Details
#initialize ⇒ Restart
Returns a new instance of Restart.
7 8 9 |
# File 'lib/pmd/restart.rb', line 7 def initialize end |
Class Method Details
.restarted ⇒ Object
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 |