Class: VagrantPlugins::Dotvm::Config::Project

Inherits:
AbstractConfig show all
Defined in:
lib/vagrant-dotvm/config/project.rb

Overview

Class represents one project

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractConfig

#convert_array, #ensure_type, #populate

Constructor Details

#initialize(parent) ⇒ Project

Returns a new instance of Project.



10
11
12
13
14
# File 'lib/vagrant-dotvm/config/project.rb', line 10

def initialize(parent)
  @parent = parent
  @variables = Variables.new
  @machines = []
end

Instance Attribute Details

#machinesObject (readonly)

Returns the value of attribute machines.



8
9
10
# File 'lib/vagrant-dotvm/config/project.rb', line 8

def machines
  @machines
end

#parentObject (readonly)

Returns the value of attribute parent.



6
7
8
# File 'lib/vagrant-dotvm/config/project.rb', line 6

def parent
  @parent
end

#variablesObject (readonly)

Returns the value of attribute variables.



7
8
9
# File 'lib/vagrant-dotvm/config/project.rb', line 7

def variables
  @variables
end

Instance Method Details

#new_machineObject



16
17
18
19
# File 'lib/vagrant-dotvm/config/project.rb', line 16

def new_machine
  machines << (machine = Machine.new self)
  machine
end