Class: AutomateIt::ShellManager::WhichUnix

Inherits:
WhichBase show all
Defined in:
lib/automateit/shell_manager/which_unix.rb

Overview

ShellManager::WhichUnix

A ShellManager driver providing access to the which command found on Unix-like systems.

Constant Summary

Constants inherited from Plugin::Driver

Plugin::Driver::BASE_DRIVER_NAME

Constants included from Constants

Constants::HELPERS_DIR, Constants::INSTALL_DIR, Constants::PERROR, Constants::PEXEC, Constants::PNOTE, Constants::WARNING_BOILERPLATE

Instance Attribute Summary

Attributes inherited from Plugin::Driver

#manager

Attributes inherited from Common

#interpreter

Instance Method Summary collapse

Methods inherited from WhichBase

#suitability, #which!

Methods inherited from BaseDriver

#peer_for

Methods inherited from Plugin::Driver

abstract_driver, #available?, base_driver, base_driver?, depends_on, inherited, manager_token, #setup, #suitability

Methods inherited from Plugin::Base

#setup, #token, token

Methods inherited from Common

#initialize, #log, #nitpick, #noop, #noop=, #noop?, #preview, #preview=, #preview?, #preview_for, #setup, #superuser?, #writing, #writing=, #writing?

Constructor Details

This class inherits a constructor from AutomateIt::Common

Instance Method Details

#which(command) ⇒ Object

See ShellManager#which



11
12
13
14
15
# File 'lib/automateit/shell_manager/which_unix.rb', line 11

def which(command)
  _which_helper do
    `which #{command} 2>&1`
  end
end