class Freshen::ExecutableError

A RuntimeError subclass for when an executing command fails.

Attributes

args[R]
command[R]
name[R]

Public Class Methods

new(name, command, *args) click to toggle source
# File lib/freshen/errors.rb, line 73
def initialize(name, command, *args)
  @name = name
  @command = command
  @args = args.map { |a| a.to_s }
end

Public Instance Methods

to_s() click to toggle source
# File lib/freshen/errors.rb, line 79
def to_s
  command = Executable.command_string(@command, *@args)
  
  "#{@name} freshener failed command '#{command}'"
end