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}"), :accept_all_exit_codes => true) result.exit_code == 0 end |