Class: Cape::Deprecation::DSLDeprecatedMirrorRakeTasks Private

Inherits:
Base
  • Object
show all
Defined in:
lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb

Overview

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.

Prints to a stream a message related to deprecated usage of Cape::DSLDeprecated#mirror_rake_tasks.

Instance Attribute Summary collapse

Attributes inherited from Base

#stream

Instance Method Summary collapse

Methods inherited from Base

#formatted_message, #write_formatted_message_to_stream

Instance Attribute Details

#task_expressionSymbol, String

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.

The task_expression argument to Cape::DSLDeprecated#mirror_rake_tasks.

Returns:

  • (Symbol, String)


15
16
17
# File 'lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb', line 15

def task_expression
  @task_expression
end

Instance Method Details

#envHashList

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.

Environment variable names and values set in a call to Cape::DSLDeprecated#mirror_rake_tasks.

Returns:



21
22
23
# File 'lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb', line 21

def env
  @env ||= HashList.new
end

#message_contentString

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.

Prepares a message based on deprecated usage of Cape::DSLDeprecated#mirror_rake_tasks.

Returns:

  • (String)

    a deprecation message



29
30
31
32
33
34
35
# File 'lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb', line 29

def message_content
  [].tap do |fragments|
    fragments << message_content_actual
    fragments << '. '
    fragments << message_content_expected
  end.join
end

#optionsHashList

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.

The options argument to Cape::DSLDeprecated#mirror_rake_tasks.

Returns:



40
41
42
# File 'lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb', line 40

def options
  @options ||= HashList.new
end

#options=(value) ⇒ HashList

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.

Sets the value of #options.

Parameters:

  • value (Hash)

    a new value for #options

Returns:



49
50
51
# File 'lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb', line 49

def options=(value)
  @options = HashList.new(value)
end