Exception: Derelict::VirtualMachine::NotFound

Inherits:
Invalid show all
Defined in:
lib/derelict/virtual_machine/not_found.rb

Overview

The requested virtual machine isn’t defined in the Vagrantfile

Instance Method Summary collapse

Constructor Details

#initialize(name, connection = nil) ⇒ NotFound

Initializes a new instance of this exception for a given name

* name:       The requested name of the virtual machine
* connection: The Derelict connection used for this VM


9
10
11
12
13
14
15
# File 'lib/derelict/virtual_machine/not_found.rb', line 9

def initialize(name, connection = nil)
  if connection.respond_to? :path
    super "Virtual machine #{name} not found in #{connection.path}"
  else
    super "Virtual machine #{name} not found"
  end
end