vagrant/lib/vagrant-host-shell/provisioner.rb
# This handles outputting the communication data back to the UI
This handles outputting the communication data back to the UI
This handles outputting the communication data back to the UI
def handle_comm(type, data)
      if [:stderr, :stdout].include?(type)
        color = type == :stdout ? :green : :red
        data = data.chomp
        return if data.empty?
        options = {}
        options[:color] = color
        @machine.ui.detail(data.chomp, options)
      end
    end
def handle_comm ( type , data ) if [ :stderr , :stdout ] . include? ( type ) color = type == :stdout ? :green : :red data = data . chomp return if data . empty? options = { } options [ :color ] = color @machine . ui . detail ( data . chomp , options ) end end
This handles outputting the communication data back to the UI
This handles outputting the communication data back to the UI
# Output the data with the proper color based on the stream. # Clear out the newline since we add one
type
<not_specific>
data
<not_specific>