Sha256: f92696b8af9101eb788c7296e3005b045cb862093eb173f3462b501cefa1a115

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

module VagrantPlugins
  module GuestRedHat
    module Cap
      class Flavor
        def self.flavor(machine)
          # Read the version file
          output = ""
          machine.communicate.sudo("cat /etc/redhat-release") do |_, data|
            output = data
          end

          # Detect various flavors we care about
          if output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud)\s*Linux( .+)? release 7/i
            return :rhel_7
          else
            return :rhel
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/redhat/cap/flavor.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/redhat/cap/flavor.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/redhat/cap/flavor.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/redhat/cap/flavor.rb
vagrant-unbundled-1.8.5.2 plugins/guests/redhat/cap/flavor.rb
vagrant-unbundled-1.8.5.1 plugins/guests/redhat/cap/flavor.rb
vagrant-unbundled-1.8.4.2 plugins/guests/redhat/cap/flavor.rb
vagrant-unbundled-1.8.4.1 plugins/guests/redhat/cap/flavor.rb