lib/veewee/ui.rb in veewee-0.3.0.alpha6 vs lib/veewee/ui.rb in veewee-0.3.0.alpha7

- old
+ new

@@ -3,10 +3,11 @@ # Vagrant UIs handle communication with the outside world (typically # through a shell). They must respond to the typically logger methods # of `warn`, `error`, `info`, and `success`. class UI attr_accessor :env + attr_accessor :resource def initialize(env) @env = env end @@ -69,9 +70,10 @@ protected def format_message(message, opts=nil) opts = { :prefix => true }.merge(opts || {}) opts[:prefix]=false if env.resource=="veewee" + opts[:prefix]=false if env.resource=="vagrant" message = "[#{env.resource}] #{message}" if opts[:prefix] message end def line_reset