Module: Vtasks::Utils::System

Included in:
Docker
Defined in:
lib/vtasks/utils/system.rb

Overview

System module

Instance Method Summary collapse

Instance Method Details

#command?(command) ⇒ Boolean

Check if command exists

Returns:

  • (Boolean)


6
7
8
# File 'lib/vtasks/utils/system.rb', line 6

def command?(command)
  system("command -v #{command} >/dev/null 2>&1")
end