keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
700 stars 40 forks source link

Separate Keygen Cloud and Keygen EE multiplayer mode #797

Open ezekg opened 4 months ago

ezekg commented 4 months ago

I've had some interest in the multiplayer mode of Keygen EE. Let's separate out Keygen Cloud and Keygen EE a bit more, e.g. Stripe and email reports are only needed for Keygen Cloud. Maybe add something like the following?

module Keygen
  def cloud?   = ee { _1.entitled?(:cloud) }
  def cloud(&) = yield if cloud?
end
ezekg commented 4 months ago

Some things to note: