Commit e4441ac5 authored by David Hrbáč's avatar David Hrbáč

Fixes it4i-admins/docs.it4i#52

parent 52676bd9
require 'faraday'
require 'json'
#print ARGV[0].downcase
response = Faraday.get "https://release-monitoring.org/api/projects/?pattern=#{ARGV[0].downcase}"
fedora = JSON.parse( response.body )['projects'][0]['version']
response = Faraday.get "https://docs.it4i.cz/devel/52-module-matrix-json-export/modules-matrix.json"
it4i = JSON.parse( response.body )['projects'][ARGV[0]]
it4i_short = it4i.split('-')[0]
puts "IT4Innovations: #{it4i_short} (#{it4i})"
puts "Upstream : #{fedora}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment