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
Instance Method Summary collapse
- #apply(world) ⇒ Object private
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.
48 49 50 |
# File 'lib/mutant/license/subscription/opensource.rb', line 48 def self.from_json(value) new(value.fetch('repositories').map(&Repository.method(:parse))) end |
Instance Method Details
#apply(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.
52 53 54 55 56 57 |
# File 'lib/mutant/license/subscription/opensource.rb', line 52 def apply(world) world .capture_stdout(%w[git remote --verbose]) .fmap(&method(:parse_remotes)) .bind(&method(:check_subscription)) end |