Method: Travis::Tools::System.running?

Defined in:
lib/travis/tools/system.rb

.running?(app) ⇒ Boolean



86
87
88
89
90
# File 'lib/travis/tools/system.rb', line 86

def running?(app)
  return false unless unix?

  system "/usr/bin/pgrep -u $(whoami) #{app} >/dev/null"
end