Class: ZoomSlack::ProcessDetector::Mac
- 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
- #clean ⇒ Object
-
#initialize(open: Open3) ⇒ Mac
constructor
A new instance of Mac.
- #running? ⇒ Boolean
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
#clean ⇒ Object
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
16 17 18 19 |
# File 'lib/zoom_slack/process_detector/mac.rb', line 16 def running? compile process_running? end |