Class: VagrantPlugins::Dotvm::Config::Instance
- Inherits:
-
AbstractConfig
- Object
- AbstractConfig
- VagrantPlugins::Dotvm::Config::Instance
- Includes:
- OptionsSetter
- Defined in:
- lib/vagrant-dotvm/config/instance.rb
Overview
Class represents whole instance of DotVm.
Constant Summary collapse
- OPTIONS_CATEGORIES =
[ :ssh, :winrm, :vagrant ]
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
mixin.
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize ⇒ Instance
constructor
A new instance of Instance.
- #new_project ⇒ Object
Methods included from OptionsSetter
Methods inherited from AbstractConfig
#convert_array, #ensure_type, #populate
Constructor Details
#initialize ⇒ Instance
Returns a new instance of Instance.
18 19 20 21 |
# File 'lib/vagrant-dotvm/config/instance.rb', line 18 def initialize @projects = [] @variables = Variables.new end |
Instance Attribute Details
#options ⇒ Object (readonly)
mixin
15 16 17 |
# File 'lib/vagrant-dotvm/config/instance.rb', line 15 def end |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
14 15 16 |
# File 'lib/vagrant-dotvm/config/instance.rb', line 14 def projects @projects end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
16 17 18 |
# File 'lib/vagrant-dotvm/config/instance.rb', line 16 def variables @variables end |
Instance Method Details
#new_project ⇒ Object
23 24 25 26 |
# File 'lib/vagrant-dotvm/config/instance.rb', line 23 def new_project projects << (project = Project.new self) project end |