Add Vagrantfile VM name to the container name

Closes #115
This commit is contained in:
Fabio Rehm 2013-07-21 22:46:42 -03:00
parent e68e4f8f05
commit 681c490cdc

View file

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