Commit 03934800 authored by Pascal Morillon's avatar Pascal Morillon

[Rake] Add task version:get

parent aa2c3ee9
Pipeline #94372 passed with stages
in 5 minutes and 18 seconds
......@@ -186,6 +186,21 @@ namespace :gen do
end
end
namespace :version do
desc 'Get model list, need model='
task :get do
model = ENV['model']
raise 'need model=' if model.nil?
model_filter = nodes_by_model(model)
nodes = model_filter.map { |x| { 'node' => x['uid'], 'bios' => x['bios']['version'] } }
nodes.each do |node|
puts "#{node['node']} : #{node['bios']}"
end
end
end
desc "Creates JSON data from inputs"
task "reference-api" do
require 'refrepo/gen/reference-api'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment