Class: Cucumber::Deprecate::CliOption

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/deprecate.rb

Class Method Summary collapse

Class Method Details

.deprecate(stream, option, message, remove_after_version) ⇒ Object


21
22
23
24
25
26
27
28
29
# File 'lib/cucumber/deprecate.rb', line 21

def self.deprecate(stream, option, message, remove_after_version)
  return if stream.nil?
  stream.puts(
    AnsiString.failure_message(
      "\nWARNING: #{option} is deprecated" \
      " and will be removed after version #{remove_after_version}.\n#{message}.\n"
    )
  )
end