Class: ZoomSlack::ProcessDetector::Mac

Inherits:
Base
  • Object
show all
Defined in:
lib/zoom_slack/process_detector/mac.rb

Constant Summary collapse

SCRIPT =
"in_zoom_meeting.applescript"
COMPILED_SCRIPT =
"in_zoom_meeting.scptd"

Instance Method Summary collapse

Constructor Details

#initialize(open: Open3) ⇒ Mac

Returns a new instance of Mac.



12
13
14
# File 'lib/zoom_slack/process_detector/mac.rb', line 12

def initialize(open: Open3)
  self.open = open
end

Instance Method Details

#cleanObject



21
22
23
# File 'lib/zoom_slack/process_detector/mac.rb', line 21

def clean
  FileUtils.remove_dir(compiled_path) if Dir.exist?(compiled_path)
end

#running?Boolean

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/zoom_slack/process_detector/mac.rb', line 16

def running?
  compile
  process_running?
end