Class: VagrantPlugins::Serverkit::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::Serverkit::Config
- Defined in:
- lib/vagrant_plugins/serverkit/config.rb
Instance Attribute Summary collapse
-
#recipe_path ⇒ Object
Returns the value of attribute recipe_path.
-
#variables_path ⇒ Object
Returns the value of attribute variables_path.
Instance Method Summary collapse
Instance Attribute Details
#recipe_path ⇒ Object
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_path ⇒ Object
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 |