def files
      @files ||= begin
        storage = model.storages.first
        return [] unless storage # model didn't store anything

        path = storage.send(:remote_path)
        unless path == File.expand_path(path)
          path.sub!(/(ssh|rsync)-daemon-module/, '')
          path = File.expand_path(File.join('~/', path))
        end
        Dir[File.join(path, "#{ model.trigger }.tar*")].sort
      end
    end
def files
      @files ||= begin
        storage = model.storages.first
        return [] unless storage # model didn't store anything

        path = storage.send(:remote_path)
        unless path == File.expand_path(path)
          path.sub!(/(ssh|rsync)-daemon-module/, '')
          path = File.expand_path(File.join('~/', path))
        end
        Dir[File.join(path, "#{ model.trigger }.tar*")].sort
      end
    end
If a trigger is run multiple times within a test (like when testing cycling),
 multiple packages will exist under different timestamp folders.
 This allows us to find the package files for the specific model given.

 For most tests the Local storage is used, which will have a remote_path
 that's already expanded. Others like SCP, RSync (:ssh mode), etc... will
 have a remote_path that's relative to the vagrant user's home.
 The exception is the RSync daemon modes, where remote_path will begin
 with daemon module names, which are mapped to the vagrant user's home.