This will be used for installing the proper SPDK version, and also for deciding if certain cgroup features are supported.
11 lines
235 B
Ruby
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
|