Class: PMD::Stop
- Inherits:
-
Object
- Object
- PMD::Stop
- Defined in:
- lib/pmd/stop.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize ⇒ Stop
Returns a new instance of Stop.
7 8 9 |
# File 'lib/pmd/stop.rb', line 7 def initialize end |
Class Method Details
.stopped ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/pmd/stop.rb', line 17 def self.stopped if File.exists? Config.stop_path FileUtils.rm Config.stop_path return true end return false end |
Instance Method Details
#execute! ⇒ Object
11 12 13 14 15 |
# File 'lib/pmd/stop.rb', line 11 def execute! FileUtils.touch Config.stop_path end |