Method: Travis::Tools::System.has?
- Defined in:
- lib/travis/tools/system.rb
.has?(command) ⇒ Boolean
79 80 81 82 83 84 |
# File 'lib/travis/tools/system.rb', line 79 def has?(command) return false unless unix? @has ||= {} @has.fetch(command) { @has[command] = system "command -v #{command} 2>/dev/null >/dev/null" } end |