Class: SeeingIsBelieving::TempFileAlreadyExists

Inherits:
SeeingIsBelievingError
  • Object
show all
Defined in:
lib/seeing_is_believing/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(from_filename, backup_filename) ⇒ TempFileAlreadyExists

Returns a new instance of TempFileAlreadyExists.



6
7
8
9
10
11
# File 'lib/seeing_is_believing/error.rb', line 6

def initialize(from_filename, backup_filename)
  super "Trying to back up #{from_filename.inspect} (FILE) to"\
        " #{backup_filename.inspect} (TEMPFILE) but TEMPFILE already exists."\
        " You should check the contents of these files. If FILE is correct,"\
        " then delete TEMPFILE. Otherwise rename TEMPFILE to FILE."
end