lib/veewee/provider/core/provider.rb in veewee-0.3.0.beta1 vs lib/veewee/provider/core/provider.rb in veewee-0.3.0.beta2

- old
+ new

@@ -33,9 +33,14 @@ require_path='veewee/provider/'+type.to_s.downcase+"/box.rb" require require_path # Get a real box object from the Provider box=Object.const_get("Veewee").const_get("Provider").const_get(type.to_s.capitalize).const_get("Box").new(name,env) + + # Attach the provider to the box + box.provider = self + + return box rescue Error => ex ui.error "Could not instante the box #{name} with provider #{type} ,#{ex}" raise end end