Files
ubicloud/prog/learn_os.rb
Hadi Moshayedi 6335abaa07 Save OS version for VmHost
This will be used for installing the proper SPDK version, and also for
deciding if certain cgroup features are supported.
2024-11-21 11:50:30 -08:00

11 lines
235 B
Ruby

# frozen_string_literal: true
class Prog::LearnOs < Prog::Base
subject_is :sshable
label def start
ubuntu_version = sshable.cmd("lsb_release --short --release").strip
pop(os_version: "ubuntu-#{ubuntu_version}")
end
end