- lab_yaml_info['my_token'] = @data['my_token']
- f = File.new(lab_yaml, 'w')
- f.puts lab_yaml_info.to_yaml
- f.close
Use block to write a file.
OK, I will use block for it
Thanks, Luan Shengde
Thanks, Xueliang
- FileUtils.chown_R(login_name, login_name, "/home/#{login_name}/.config")
- end
- def config_authorized_key(login_name) pub_key = @data['my_ssh_pubkey'][0]
-- 2.23.0