Class AutomateIt::ShellManager::WhichWindows
In: lib/automateit/shell_manager/which_windows.rb
Parent: ::AutomateIt::ShellManager::WhichBase

ShellManager::WhichWindows

A ShellManager driver providing access to which command by faking it on Windows systems.

Methods

which  

Constants

WHICH_HELPER = File.join(::AutomateIt::Constants::HELPERS_DIR, "which.cmd")

Public Instance methods

See ShellManager#which

[Source]

# File lib/automateit/shell_manager/which_windows.rb, line 14
  def which(command)
    _which_helper do
      data = `#{WHICH_HELPER} #{command} 2>&1`
    end
  end

[Validate]