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