class PMD::Pause

Public Class Methods

is_paused() click to toggle source
# File lib/pmd/pause.rb, line 9
def self.is_paused
  
  if File.exists? Config.pause_path
    return true
  end
  return false
end
new() click to toggle source
# File lib/pmd/pause.rb, line 5
def initialize

end

Public Instance Methods

execute!() click to toggle source
# File lib/pmd/pause.rb, line 17
def execute!

  if not File.exists? Config.pause_path
    FileUtils.touch Config.pause_path
  else
    FileUtils.rm Config.pause_path
  end

end