Sha256: 4620ac169f658cd5289d2db68897c607c8166a9f980b349de58fe1c51bb91785
Contents?: true
Size: 545 Bytes
Versions: 6
Compression:
Stored size: 545 Bytes
Contents
module VagrantPlugins module GuestRocky module Cap class Flavor def self.flavor(machine) # Read the version file version = "" machine.communicate.sudo("source /etc/os-release && printf $VERSION_ID") do |type, data| if type == :stdout version = data.split(".").first.to_i end end if version.nil? || version < 1 :rocky else "rocky_#{version}".to_sym end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems