Commit e92b59ca authored by Jason Colyer's avatar Jason Colyer

Create a rake task to gather license info

* Added changelog file
* Added rake task file
* Moved file to proper location
* Changed wording to make it clearer
* Used different method as per Remy's recomendation
* Changed prints to puts
parent eaadbcfc
---
title: Create a license info rake task
merge_request: 20501
author: Jason Colyer
type: added
# frozen_string_literal: true
namespace :gitlab do
namespace :license do
desc 'GitLab | Gather license related information'
task info: :gitlab_environment do
license = Gitlab::UsageData.license_usage_data
puts "Today's Date: #{Date.today}"
puts "Current User Count: #{license[:active_user_count]}"
puts "Max Historical Count: #{license[:historical_max_users]}"
puts "Max Users in License: #{license[:license_user_count]}"
puts "License valid from: #{license[:license_starts_at]} to #{license[:license_expires_at]}"
puts "Email associated with license: #{license[:licensee]['Email']}"
end
end
end
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