Module: Deploy::Utility

Included in:
Checks, Commands, Runner, Versions
Defined in:
lib/deploy/utility.rb

Instance Method Summary collapse

Instance Method Details

#command?(command) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/deploy/utility.rb', line 4

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