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'

Class Method Summary collapse

Class Method Details

.apply(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

Parameters:

Returns:



15
16
17
18
19
# File 'lib/mutant/license.rb', line 15

def self.apply(world)
  load_mutant_license(world)
    .fmap { license_path(world) }
    .bind { |path| Subscription.load(world, world.json.load(path)) }
end