Sha256: 32f04c6c3e7558efa761f843609d256d55599f77df72c01f3807fb7c649cc72f

Contents?: true

Size: 707 Bytes

Versions: 23

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

module VagrantPlugins
  module ProviderLibvirt
    module Util
      module Ui
        # Since v2.2.8 Vagrant support --no-tty option, which silences
        # progress bars and other interactive elements for cleaner logs
        # in scripts, but requires a slight change in UI object handling.
        # This helper allows the vagrant-libvirt plugin to stay compatible
        # with the older Vagrant versions.
        # See: https://github.com/hashicorp/vagrant/pull/11465/
        def rewriting(ui)
          if ui.respond_to?(:rewriting)
            ui.rewriting {|rw| yield rw}
          else
            yield ui
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
vagrant-libvirt-0.12.2 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.12.1 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.12.0 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.11.2 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.11.1 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.8 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.7 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.6 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.5 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.4 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.3 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.2 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.1 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.10.0 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.9.0 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.8.2 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.8.1 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.8.0 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.7.0 lib/vagrant-libvirt/util/ui.rb
vagrant-libvirt-0.6.3 lib/vagrant-libvirt/util/ui.rb