class Fuzz::Executable

Attributes

command[R]

Public Class Methods

new(command) click to toggle source
# File lib/fuzz/executable.rb, line 6
def initialize(command)
  @command = command
end

Public Instance Methods

error_if_missing() click to toggle source
# File lib/fuzz/executable.rb, line 10
def error_if_missing
  if !installed?
    raise(
      MissingExecutableError,
      "Can't find the `#{ command }` executable!",
    )
  end
end

Private Instance Methods

installed?() click to toggle source
# File lib/fuzz/executable.rb, line 23
def installed?
  system("which #{ command }")
  $?.success?
end