Sha256: 4d77f69f1862595b758ce821ee3952525fe17a1b774b75ead3327616d9f09f8d

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

# == ShellManager::WhichUnix
#
# A ShellManager driver providing access to the +which+ command found on
# Unix-like systems.
class AutomateIt::ShellManager::WhichUnix < AutomateIt::ShellManager::WhichBase
  depends_on :programs => %w(which)

  # Inherits WhichBase#suitability

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
automate-it-0.9.2 lib/automateit/shell_manager/which_unix.rb
automate-it-0.9.1 lib/automateit/shell_manager/which_unix.rb
automate-it-0.9.0 lib/automateit/shell_manager/which_unix.rb
automateit-0.71221 lib/automateit/shell_manager/which_unix.rb
automateit-0.71111 lib/automateit/shell_manager/which_unix.rb
automateit-0.71112 lib/automateit/shell_manager/which_unix.rb
automateit-0.71219 lib/automateit/shell_manager/which_unix.rb
automateit-0.71220 lib/automateit/shell_manager/which_unix.rb
automateit-0.71226.1 lib/automateit/shell_manager/which_unix.rb
automateit-0.80116 lib/automateit/shell_manager/which_unix.rb
automateit-0.80624 lib/automateit/shell_manager/which_unix.rb
automateit-0.71230 lib/automateit/shell_manager/which_unix.rb
automateit-0.71226 lib/automateit/shell_manager/which_unix.rb