Module: Vtasks::Utils::System
- Included in:
- Docker
- Defined in:
- lib/vtasks/utils/system.rb
Overview
System module
Instance Method Summary collapse
-
#command?(command) ⇒ Boolean
Check if command exists.
Instance Method Details
#command?(command) ⇒ Boolean
Check if command exists
6 7 8 |
# File 'lib/vtasks/utils/system.rb', line 6 def command?(command) system("command -v #{command} >/dev/null 2>&1") end |