lib/veewee/provider/core/box.rb in veewee-0.3.0.alpha6 vs lib/veewee/provider/core/box.rb in veewee-0.3.0.alpha7
- old
+ new
@@ -28,9 +28,16 @@
include ::Veewee::Provider::Core::Helper::Ssh
include ::Veewee::Provider::Core::Helper::Iso
include ::Veewee::Provider::Core::BoxCommand
+ def ui
+ return @_ui if defined?(@_ui)
+ @_ui = @env.ui.dup
+ @_ui.resource = @name
+ @_ui
+ end
+
def initialize(name,env)
@env=env
@name=name
self.set_definition(name)
end