Sha256: e2250b2be425241840e42730ebc5458592b290378f5488455e9b0a788136fc23

Contents?: true

Size: 715 Bytes

Versions: 14

Compression:

Stored size: 715 Bytes

Contents

module VagrantVbguest
  module Installers
    class Fedora < Linux

      def self.match?(vm)
        :fedora == self.distro(vm)
      end

      # Install missing deps and yield up to regular linux installation
      def install(opts=nil, &block)
        communicate.sudo(install_dependencies_cmd, opts, &block)
        super
      end

      protected

      def install_dependencies_cmd
        "`bash -c 'type -p dnf || type -p yum'` install -y #{dependencies}"
      end

      def dependencies
        packages = ['kernel-devel-`uname -r`', 'gcc', 'dkms', 'make', 'perl', 'bzip2']
        packages.join ' '
      end
    end
  end
end
VagrantVbguest::Installer.register(VagrantVbguest::Installers::Fedora, 5)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vagrant-vbguest-0.17.0 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.17.0.beta2 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.17.0.beta1 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.16.0 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.16.0.beta1 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.15.2 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.15.1 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.15.0 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.14.2 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.14.1 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.14.0 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.14.0.pre.beta1 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.13.0 lib/vagrant-vbguest/installers/fedora.rb
vagrant-vbguest-0.12.0 lib/vagrant-vbguest/installers/fedora.rb