Class: Cape::RecipeDefinitionDeprecated Private
- Inherits:
-
RecipeDefinition
- Object
- RecipeDefinition
- Cape::RecipeDefinitionDeprecated
- Defined in:
- lib/cape/recipe_definition_deprecated.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.
Implements RecipeDefinition with deprecated methods.
Instance Attribute Summary collapse
-
#deprecation ⇒ Deprecation::Base
readonly
private
The object in which deprecated API usage is recorded.
Instance Method Summary collapse
-
#[]=(name, value) ⇒ RecipeDefinitionDeprecated
deprecated
Deprecated.
Use Cape::RecipeDefinition#env instead.
-
#initialize(deprecation) ⇒ RecipeDefinitionDeprecated
constructor
private
Constructs a new RecipeDefinitionDeprecated with the specified deprecation.
Methods inherited from RecipeDefinition
Constructor Details
#initialize(deprecation) ⇒ RecipeDefinitionDeprecated
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.
Constructs a new RecipeDefinitionDeprecated with the specified deprecation.
19 20 21 |
# File 'lib/cape/recipe_definition_deprecated.rb', line 19 def initialize(deprecation) @deprecation = deprecation end |
Instance Attribute Details
#deprecation ⇒ Deprecation::Base (readonly)
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 object in which deprecated API usage is recorded.
13 14 15 |
# File 'lib/cape/recipe_definition_deprecated.rb', line 13 def deprecation @deprecation end |
Instance Method Details
#[]=(name, value) ⇒ RecipeDefinitionDeprecated
Use Cape::RecipeDefinition#env instead.
Sets a remote environment variable.
33 34 35 36 37 |
# File 'lib/cape/recipe_definition_deprecated.rb', line 33 def []=(name, value) env[name] = value deprecation.env[name] = value self end |