def generate_lockfile
      if lock_exists? && lock_content['Holders'] == @holders
        logger.info 'Holders are unchanged, not updating'
        return true
      end
      lockfile_format = {
        'Limit' => limit,
        'Holders' => @holders
      }
      JSON.generate(lockfile_format)
    end
def generate_lockfile
      if lock_exists? && lock_content['Holders'] == @holders
        logger.info 'Holders are unchanged, not updating'
        return true
      end
      lockfile_format = {
        'Limit' => limit,
        'Holders' => @holders
      }
      JSON.generate(lockfile_format)
    end
Generate JSON formatted lockfile content, only if the content has changed