Method: Windows::Pkg#check_for_command

Defined in:
lib/beaker/host/windows/pkg.rb

#check_for_command(name) ⇒ Object



4
5
6
7
# File 'lib/beaker/host/windows/pkg.rb', line 4

def check_for_command(name)
  result = exec(Beaker::Command.new("which #{name}"), :acceptable_exit_codes => (0...127))
  result.exit_code == 0
end