Class: VagrantPlugins::Serverkit::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#recipe_pathObject

Returns the value of attribute recipe_path.



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

def recipe_path
  @recipe_path
end

#variables_pathObject

Returns the value of attribute variables_path.



7
8
9
# File 'lib/vagrant_plugins/serverkit/config.rb', line 7

def variables_path
  @variables_path
end

Instance Method Details

#validate(machine) ⇒ Object

Note:

Override to make sure that recipe_path is specified



10
11
12
13
14
15
16
# File 'lib/vagrant_plugins/serverkit/config.rb', line 10

def validate(machine)
  errors = _detected_errors
  if recipe_path.nil?
    errors << 'Set recipe_path to config (e.g. "recipe.yml")'
  end
  { "serverkit_provider" => errors }
end