Sha256: e88c1d37a8079a9328870aa82d73d2da45026eb51e61be1c7133b5f2d320538b

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 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}".to_sym
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/fedora/cap/flavor.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/fedora/cap/flavor.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/fedora/cap/flavor.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-1.8.4.2 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-1.8.4.1 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-1.8.1.2 plugins/guests/fedora/cap/flavor.rb
vagrant-unbundled-1.8.1.1 plugins/guests/fedora/cap/flavor.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/fedora/cap/flavor.rb