标签: ruby vagrant vagrantfile
Vagrant基本框将config.ssh.username设置为某个值。我有Vagrantfile我希望在字符串中使用该值。如果我创建了一个类似"prefix_#{config.ssh.username}_suffix"的字符串,那么扩展就像prefix_\#\<Object:0x000000010127e780\>_suffix一样。如何获取存储在config.ssh命名空间中的字符串值?
config.ssh.username
Vagrantfile
"prefix_#{config.ssh.username}_suffix"
prefix_\#\<Object:0x000000010127e780\>_suffix
config.ssh