Class: Mutant::License::Subscription::Opensource Private
- Inherits:
-
Mutant::License::Subscription
- Object
- Mutant::License::Subscription
- Mutant::License::Subscription::Opensource
- Defined in:
- lib/mutant/license/subscription/opensource.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Repository
Constant Summary
Constants inherited from Mutant::License::Subscription
Class Method Summary collapse
-
.from_json(value) ⇒ Object
private
Opensource.
Instance Method Summary collapse
- #call(world) ⇒ Object private
Methods inherited from Mutant::License::Subscription
Class Method Details
.from_json(value) ⇒ Object
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.
Opensource
54 55 56 57 58 59 60 61 |
# File 'lib/mutant/license/subscription/opensource.rb', line 54 def self.from_json(value) new( value .fetch('repositories') .map(&Repository.public_method(:parse)) .to_set ) end |
Instance Method Details
#call(world) ⇒ Object
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.
63 64 65 66 67 68 |
# File 'lib/mutant/license/subscription/opensource.rb', line 63 def call(world) world .capture_stdout(%w[git remote --verbose]) .fmap(&method(:parse_remotes)) .bind(&method(:check_subscription)) end |