Sha256: ab36d986add4517edbb9994c98c16ce001899434b90203d16032383735356286

Contents?: true

Size: 1.18 KB

Versions: 12

Compression:

Stored size: 1.18 KB

Contents

require_relative "../container/installer"

module VagrantPlugins
  module PodmanProvisioner
    class Installer < VagrantPlugins::ContainerProvisioner::Installer
      # This handles verifying the Podman installation, installing it if it was
      # requested, and so on. This method will raise exceptions if things are
      # wrong.
      # @params [Boolean] - if true install should use kubic project (this will)
      #                     add a yum repo.
      #                     if false install comes from default yum
      # @return [Boolean] - false if podman cannot be detected on machine, else
      #                     true if podman installs correctly or is installed
      def ensure_installed(kubic)
        if !@machine.guest.capability?(:podman_installed)
          @machine.ui.warn("Podman can not be installed")
          return false
        end

        if !@machine.guest.capability(:podman_installed)
          @machine.ui.detail("Podman installing")
          @machine.guest.capability(:podman_install, kubic)
        end

        if !@machine.guest.capability(:podman_installed)
          raise PodmanError, :install_failed
        end

        true
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/provisioners/podman/installer.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.3.3.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.3.2.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.19.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.18.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.16.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.14.0 plugins/provisioners/podman/installer.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.10.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.9.0 plugins/provisioners/podman/installer.rb
vagrant-unbundled-2.2.8.0 plugins/provisioners/podman/installer.rb