mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Updated documentation so that users could find the new option. Updated test case to behave as expected.
35 lines
430 B
Ruby
35 lines
430 B
Ruby
require "ostruct"
|
|
require "pathname"
|
|
|
|
class EnvironmentHelper
|
|
|
|
attr_writer :domain_name
|
|
|
|
attr_accessor :random_hostname, :name, :default_prefix
|
|
|
|
def [](value)
|
|
self.send(value.to_sym)
|
|
end
|
|
|
|
def machine
|
|
self
|
|
end
|
|
|
|
def provider_config
|
|
self
|
|
end
|
|
|
|
def root_path
|
|
Pathname.new("./spec/support/foo")
|
|
end
|
|
|
|
def domain_name
|
|
#noop
|
|
end
|
|
|
|
def libvirt_compute
|
|
OpenStruct.new(servers: [])
|
|
end
|
|
|
|
end
|