def execute!(command, options)
        # Build up the arguments to pass to connection.execute!
        arguments = [command, name, *arguments_for(command)]
        arguments << "--color" if options[:color]
        if options[:provider]
          arguments << "--provider"
          arguments << options[:provider]
        end

        if options[:log_mode]
          arguments << {:mode => options[:log_mode]}
        end

        # Set up the block to use when executing -- if logging is
        # enabled, use a block that logs the output; otherwise no block.
        block = options[:log] ? shell_log_block : nil

        # Execute the command
        connection.execute! *arguments, &block
      end
def execute!(command, options)
        # Build up the arguments to pass to connection.execute!
        arguments = [command, name, *arguments_for(command)]
        arguments << "--color" if options[:color]
        if options[:provider]
          arguments << "--provider"
          arguments << options[:provider]
        end

        if options[:log_mode]
          arguments << {:mode => options[:log_mode]}
        end

        # Set up the block to use when executing -- if logging is
        # enabled, use a block that logs the output; otherwise no block.
        block = options[:log] ? shell_log_block : nil

        # Execute the command
        connection.execute! *arguments, &block
      end
Executes a command on the connection for this VM

   * command: The command to execute (as a symbol)
   * options: A Hash of options, with the following optional keys:
       * log:      Logs the output of the command if true
                   (defaults to false)
       * log_mode: Controls how commands are logged (one of
                   either :chars or :lines, defaults to :lines)
       * color:    Uses color in the log output (defaults to
                   false, only relevant if log is true)
       * provider: The Vagrant provider to use, one of
                   "virtualbox" or "vmware_fusion" (defaults to
                   "virtualbox")