Class: VagrantPluginDummy::Guest::Dummy
- Inherits:
-
Object
- Object
- VagrantPluginDummy::Guest::Dummy
- Defined in:
- lib/vagrant-plugin-dummy/guest/dummy.rb
Instance Attribute Summary collapse
-
#machine ⇒ Object
readonly
Vagrant 1.1.x compatibility methods Implement the 1.1.x methods and call through to the new 1.2.x capabilities.
Instance Method Summary collapse
- #change_host_name(name) ⇒ Object
- #configure_networks(networks) ⇒ Object
-
#detect?(machine) ⇒ Boolean
Vagrant 1.2.x compatibility methods.
- #distro_dispatch ⇒ Object
- #halt ⇒ Object
-
#initialize(machine = nil) ⇒ Dummy
constructor
A new instance of Dummy.
- #mount_virtualbox_shared_folder(name, guestpath, options) ⇒ Object
- #mount_vmware_shared_folder(name, guestpath, options) ⇒ Object
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
#machine ⇒ Object (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
44 45 46 |
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 44 def detect?(machine) machine.communicate.test("") end |
#distro_dispatch ⇒ Object
21 22 23 |
# File 'lib/vagrant-plugin-dummy/guest/dummy.rb', line 21 def distro_dispatch :dummy end |
#halt ⇒ Object
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, ) 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, ) false end |