# File lib/vagrant-lxc/driver/cli.rb, line 104 def attach(*cmd) cmd = ['--'] + cmd if cmd.last.is_a?(Hash) opts = cmd.pop namespaces = Array(opts[:namespaces]).map(&:upcase).join('|') # HACK: The wrapper script should be able to handle this if @sudo_wrapper.wrapper_path namespaces = "'#{namespaces}'" end if namespaces extra = ['--namespaces', namespaces] end end run :attach, '--name', @name, *((extra || []) + cmd) end