Class: CodeKindly::Utils::OS

Inherits:
Object
  • Object
show all
Defined in:
lib/code_kindly/utils/os.rb

Class Method Summary collapse

Class Method Details

.notify(message) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/code_kindly/utils/os.rb', line 7

def notify(message)
  return if terminal_notifier.nil?
  Command.run [
    terminal_notifier,
    "-message \"#{message}\"",
    '-sound Submarine'
  ].join(' ')
end

.which(program) ⇒ Object



16
17
18
# File 'lib/code_kindly/utils/os.rb', line 16

def which(program)
  Command.run("which #{program}").result
end