Class: VagrantPuppetconf::Config

Inherits:
Vagrant::Config::Base
  • Object
show all
Defined in:
lib/vagrant-puppetconf/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#update_onlyObject

Returns the value of attribute update_only.



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

def update_only
  @update_only
end

#updatesObject

Returns the value of attribute updates.



3
4
5
# File 'lib/vagrant-puppetconf/config.rb', line 3

def updates
  @updates
end

Instance Method Details

#validate(env, errors) ⇒ Object



10
11
12
# File 'lib/vagrant-puppetconf/config.rb', line 10

def validate(env, errors)
  errors.add("Updates should be passed as a hash") unless updates.kind_of? Hash
end