Class: Mutant::Usage::Unknown Private

Inherits:
Mutant::Usage show all
Defined in:
lib/mutant/usage.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.

Constant Summary collapse

VALUE =

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.

'unknown'
MESSAGE =

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.

<<~"MESSAGE".freeze
  # Unknown mutant usage type

  Mutant license usage is unspecified. Valid usage types are `opensource` or `commercial`.

  Usage can be specified via the `--usage` command line parameter or via the
  config file under the `usage` key.

  #{Commercial::MESSAGE}
  #{Opensource::MESSAGE}
  This is a breaking change for users of the 0.11.x / 0.10.x mutant releases.
  Sorry for that but its going to make future adoption much easier.
  License gem is gone entirely.
MESSAGE

Constants inherited from Mutant::Usage

CLI_REGEXP, TRANSFORM

Instance Method Summary collapse

Methods inherited from Mutant::Usage

#message, parse, #value

Instance Method Details

#merge(other) ⇒ 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.



84
85
86
# File 'lib/mutant/usage.rb', line 84

def merge(other)
  other
end

#verifyObject

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.



88
89
90
# File 'lib/mutant/usage.rb', line 88

def verify
  Either::Left.new(MESSAGE)
end