Class: VagrantPlugins::Serverkit::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-serverkit/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
12
# File 'lib/vagrant-serverkit/config.rb', line 8

def initialize
  @host      = UNSET_VALUE
  @recipe    = UNSET_VALUE
  @variables = UNSET_VALUE
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



4
5
6
# File 'lib/vagrant-serverkit/config.rb', line 4

def host
  @host
end

#recipeObject

Returns the value of attribute recipe.



5
6
7
# File 'lib/vagrant-serverkit/config.rb', line 5

def recipe
  @recipe
end

#variablesObject

Returns the value of attribute variables.



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

def variables
  @variables
end

Instance Method Details

#finalize!Object



14
15
16
17
18
# File 'lib/vagrant-serverkit/config.rb', line 14

def finalize!
  @host      = nil if @host      == UNSET_VALUE
  @recipe    = nil if @recipe    == UNSET_VALUE
  @variables = nil if @variables == UNSET_VALUE
end