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