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