Module: Mutant::License Private
- Defined in:
- lib/mutant/license.rb,
lib/mutant/license/subscription.rb,
lib/mutant/license/subscription/commercial.rb,
lib/mutant/license/subscription/opensource.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Subscription
Constant Summary collapse
- NAME =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'mutant-license'
- VERSION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
['>= 0.1', '< 0.3'].freeze
Class Method Summary collapse
-
.call(world) ⇒ Either<String,Subscription>
private
Load license.
Class Method Details
.call(world) ⇒ Either<String,Subscription>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Load license
15 16 17 18 19 |
# File 'lib/mutant/license.rb', line 15 def self.call(world) load_mutant_license(world) .fmap { license_path(world) } .bind { |path| Subscription.load(world, world.json.load(path)) } end |