class PMD::Daemon

Public Class Methods

new() click to toggle source
# File lib/pmd/daemon.rb, line 135
def initialize
  # load up cocoa here instead of as a parent - to avoid weird error each time we run!
  framework 'Cocoa'
  # remove any files from previous runner
  [Config.stop_path, Config.restart_path, Config.pause_path].each do |file|
    if File.exists? file
      FileUtils.rm file
    end
  end
end

Public Instance Methods

execute!() click to toggle source
# File lib/pmd/daemon.rb, line 146
def execute!
  app = NSApplication.sharedApplication
  app.delegate = MyAppDelegate.new
  app.run
end