class FileDepotFtpAnonymous < FileDepotFtp
  def self.requires_credentials?
    false
  end

  def remove_file(_file)
    $log.info("MIQ(#{self.class.name}##{__method__}) Removing log file not supported on this depot type")
  end

  private

  def create_directory_structure(_ftp)
    nil
  end

  def destination_file_exists?(_ftp, _file)
    false
  end

  def destination_path
    "/incoming"
  end

  def login_credentials
    ["anonymous", "anonymous"]
  end
end

class FileDepotFtpAnonymous < FileDepotFtp
  def self.requires_credentials?
    false
  end

  def remove_file(_file)
    $log.info("MIQ(#{self.class.name}##{__method__}) Removing log file not supported on this depot type")
  end

  private

  def create_directory_structure(_path)
    nil
  end

  def file_exists?(_file)
    false
  end

  def destination_path
    Pathname.new("incoming")
  end

  def login_credentials
    ["anonymous", "anonymous"]
  end
end

Update FileDepotFtpAnonymous to match changes to FileDepotFtp.
Update FileDepotFtpAnonymous to match changes to FileDepotFtp.

destination_file_exists? was renamed to file_exists? since it's used for the destination directories in addition to the destination file.
destination_path needs to return a Pathname object that responds to join.

https://bugzilla.redhat.com/show_bug.cgi?id=1184465
