rubber 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
 - data/lib/rubber/environment.rb +8 -2
 - metadata +1 -1
 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1.1. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.1.1
         
     | 
    
        data/lib/rubber/environment.rb
    CHANGED
    
    | 
         @@ -125,14 +125,20 @@ module Rubber 
     | 
|
| 
       125 
125 
     | 
    
         
             
                  class BoundEnv < HashValueProxy
         
     | 
| 
       126 
126 
     | 
    
         
             
                    attr_reader :roles
         
     | 
| 
       127 
127 
     | 
    
         
             
                    attr_reader :host
         
     | 
| 
       128 
     | 
    
         
            -
                    attr_reader :full_host
         
     | 
| 
       129 
128 
     | 
    
         | 
| 
       130 
129 
     | 
    
         
             
                    def initialize(global, roles, host)
         
     | 
| 
       131 
130 
     | 
    
         
             
                      @roles = roles
         
     | 
| 
       132 
131 
     | 
    
         
             
                      @host = host
         
     | 
| 
       133 
132 
     | 
    
         
             
                      bound_global = bind_config(global)
         
     | 
| 
       134 
133 
     | 
    
         
             
                      super(nil, bound_global)
         
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
      
 134 
     | 
    
         
            +
                    end
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
                    def full_host
         
     | 
| 
      
 137 
     | 
    
         
            +
                      @full_host ||= "#{host}.#{domain}" rescue nil
         
     | 
| 
      
 138 
     | 
    
         
            +
                    end
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                    def rubber_instances
         
     | 
| 
      
 141 
     | 
    
         
            +
                      @rubber_instances ||= Rubber::Configuration::rubber_instances
         
     | 
| 
       136 
142 
     | 
    
         
             
                    end
         
     | 
| 
       137 
143 
     | 
    
         | 
| 
       138 
144 
     | 
    
         
             
                    # Forces role/host overrides into config
         
     |