Class: VagrantPlugins::GuestClearLinux::BundleAddProvisioner
- Inherits:
-
Object
- Object
- VagrantPlugins::GuestClearLinux::BundleAddProvisioner
- Defined in:
- lib/vagrant-guests-clearlinux/provisioner.rb
Instance Method Summary collapse
Instance Method Details
#provision ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/vagrant-guests-clearlinux/provisioner.rb', line 71 def provision @machine.ui.detail("installing the following bundle(s): '#{@config.bundles}'") @machine.communicate.sudo("swupd bundle-add #{@config.bundles}") do |type, data| if %i[stderr stdout].include?(type) color = type == :stdout ? :green : :red = {} [:color] = color @machine.ui.detail(data.chomp, ) end end end |