
26 Dec
2020
26 Dec
'20
2:43 p.m.
On Sat, Dec 26, 2020 at 02:14:28PM +0800, Xiao Shenwei wrote:
On Sat, Dec 26, 2020 at 11:42:22AM +0800, Luan Shengde wrote:
purpose: build my_info for users when they installing compass-ci as private environment if not, will face account verification problems when they submitting jobs - store my_info to ES - write my_info to default/lab yaml file +class BuildMyInfo + def initialize(my_email, my_name, lab) + @lab = lab || 'z9' + @my_info = { + 'my_email' => my_email, + 'my_name' => my_name, + 'my_token' => %x(uuidgen).chomp + }
why not build them as attr? class Myinfo @lab @email @name @token end
I need to store the my_info(hash) to es Thanks, Luan Shengde
Thanks, Shenwei