Class: VagrantPluginDummy::Guest::Dummy

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-plugin-dummy/guest/dummy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machine = nil) ⇒ Dummy

Returns a new instance of Dummy.



12
13
14
15
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 12

def initialize(machine = nil)
  super(machine) unless machine == nil
  @machine = machine
end

Instance Attribute Details

#machineObject (readonly)

Vagrant 1.1.x compatibility methods Implement the 1.1.x methods and call through to the new 1.2.x capabilities



10
11
12
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 10

def machine
  @machine
end

Instance Method Details

#change_host_name(name) ⇒ Object



17
18
19
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 17

def change_host_name(name)
  false
end

#configure_networks(networks) ⇒ Object



37
38
39
40
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 37

def configure_networks(networks)
  require_relative "guest/cap/configure_networks"
  VagrantPluginDummy::Guest::Cap::ConfigureNetworks
end

#detect?(machine) ⇒ Boolean

Vagrant 1.2.x compatibility methods

Returns:

  • (Boolean)


44
45
46
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 44

def detect?(machine)
  machine.communicate.test("")
end

#distro_dispatchObject



21
22
23
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 21

def distro_dispatch
  :dummy
end

#haltObject



25
26
27
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 25

def halt
  false
end

#mount_virtualbox_shared_folder(name, guestpath, options) ⇒ Object



29
30
31
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 29

def mount_virtualbox_shared_folder(name, guestpath, options)
  false
end

#mount_vmware_shared_folder(name, guestpath, options) ⇒ Object



33
34
35
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 33

def mount_vmware_shared_folder(name, guestpath, options)
  false
end