Class: Cape::Deprecation::CapistranoDeprecatedDefineRakeWrapper Private

Inherits:
Base
  • Object
show all
Defined in:
lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.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 CapistranoDeprecated#define_rake_wrapper.

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

#taskSymbol, 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 argument to CapistranoDeprecated#define_rake_wrapper.

Returns:

  • (Symbol, String)


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

def task
  @task
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 CapistranoDeprecated#define_rake_wrapper.

Returns:



21
22
23
# File 'lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.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 CapistranoDeprecated#define_rake_wrapper.

Returns:

  • (String)

    a deprecation message



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

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

#named_argumentsHashList

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 named_arguments argument to CapistranoDeprecated#define_rake_wrapper.

Returns:



41
42
43
# File 'lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.rb', line 41

def named_arguments
  @named_arguments ||= HashList.new
end

#named_arguments=(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 #named_arguments.

Parameters:

Returns:



50
51
52
# File 'lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.rb', line 50

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