Remove unneeded .to_s

This commit is contained in:
Fabio Rehm 2013-11-06 21:06:25 -02:00
parent 6428da893b
commit 0e57cfc2b0

View file

@ -7,7 +7,7 @@ module Vagrant
end
def call(env)
container_name = "#{env[:root_path].basename.to_s}_#{env[:machine].name}"
container_name = "#{env[:root_path].basename}_#{env[:machine].name}"
container_name.gsub!(/[^-a-z0-9_]/i, "")
container_name << "-#{Time.now.to_i}"