Class: Aruba::Platforms::UnixEnvironmentVariables::RemoveAction
- Inherits:
- 
      Object
      
        - Object
- Aruba::Platforms::UnixEnvironmentVariables::RemoveAction
 
- Defined in:
- lib/aruba/platforms/unix_environment_variables.rb
Overview
Remove variables from environment
Instance Attribute Summary collapse
- 
  
    
      #variables  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute variables. 
Instance Method Summary collapse
- #call(env) ⇒ Object
- 
  
    
      #initialize(variables)  ⇒ RemoveAction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RemoveAction. 
Constructor Details
#initialize(variables) ⇒ RemoveAction
Returns a new instance of RemoveAction.
| 32 33 34 | # File 'lib/aruba/platforms/unix_environment_variables.rb', line 32 def initialize(variables) @variables = Array(variables) end | 
Instance Attribute Details
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
| 30 31 32 | # File 'lib/aruba/platforms/unix_environment_variables.rb', line 30 def variables @variables end | 
Instance Method Details
#call(env) ⇒ Object
| 36 37 38 39 40 | # File 'lib/aruba/platforms/unix_environment_variables.rb', line 36 def call(env) variables.each { |v| env.delete v } env end |