lib/buildbox/command.rb in buildbox-0.0.3 vs lib/buildbox/command.rb in buildbox-0.0.4

- old
+ new

@@ -13,9 +13,14 @@ Buildbox.logger.debug(command) read_io, write_io, pid = nil result = Buildbox::Result.new(command) + # hack: this is so the observer class can raise a started event. + # instead of having a block passed to this command, we should implement + # a proper command observer + yield result + begin dir = File.expand_path(@path) # spawn the process in a pseudo terminal so colors out outputted read_io, write_io, pid = PTY.spawn("cd #{dir} && #{command}")