Class: PMD::Stop

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStop

Returns a new instance of Stop.



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

def initialize

end

Class Method Details

.stoppedObject



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