Class: Fuzz::Executable

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzz/executable.rb

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ Executable

Returns a new instance of Executable.



6
7
8
# File 'lib/fuzz/executable.rb', line 6

def initialize(command)
  @command = command
end

Instance Method Details

#error_if_missingObject



10
11
12
13
14
15
16
17
# File 'lib/fuzz/executable.rb', line 10

def error_if_missing
  if !installed?
    raise(
      MissingExecutableError,
      "Can't find the `#{ command }` executable!",
    )
  end
end