Sha256: c6a845610951253c3695bac8cbcb4e5b961742f2feed758d199553ad7cc02407

Contents?: true

Size: 532 Bytes

Versions: 50

Compression:

Stored size: 532 Bytes

Contents

module VagrantPlugins
  module GuestFedora
    module Cap
      class Flavor
        def self.flavor(machine)
          # Read the version file
          version = nil
          machine.communicate.sudo("grep VERSION_ID /etc/os-release") do |type, data|
            if type == :stdout
              version = data.split("=")[1].chomp.to_i
            end
          end

          if version.nil?
            return :fedora
          else
            return :"fedora_#{version}"
          end
        end
      end
    end
  end
end

Version data entries

50 entries across 46 versions & 5 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/fedora/cap/flavor.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.3.3.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.3.2.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.19.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.18.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.16.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.14.0 plugins/guests/fedora/cap/flavor.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.10.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.9.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.8.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.7.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.6.2 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.6.1 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.6.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.5.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.4.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.3.0 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-2.2.2.0 plugins/guests/fedora/cap/flavor.rb