Commit bd9b329c authored by Anton Smith's avatar Anton Smith

How to get license details via Rails console

parent 7b3b88dd
...@@ -620,10 +620,26 @@ Gitlab::CurrentSettings.current_application_settings.runners_registration_token ...@@ -620,10 +620,26 @@ Gitlab::CurrentSettings.current_application_settings.runners_registration_token
## License ## License
### See license plan name (since v9.3.0-ee) ### See current license information
```ruby ```ruby
# License information (name, company, email address)
License.current.licensee
# Plan:
License.current.plan License.current.plan
# Uploaded:
License.current.created_at
# Started:
License.current.starts_at
# Expires at:
License.current.expires_at
# Is this a trial license?
License.current.trial?
``` ```
### Check if a project feature is available on the instance ### Check if a project feature is available on the instance
......
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