lib/config_builder/model/provisioner/puppet.rb in vagrant-config_builder-0.5.0 vs lib/config_builder/model/provisioner/puppet.rb in vagrant-config_builder-0.6.0
- old
+ new
@@ -22,14 +22,14 @@
attr_accessor :options
def to_proc
Proc.new do |vm_config|
vm_config.provision :puppet do |puppet_config|
- puppet_config.manifests_path = attr(:manifests_path) if attr(:manifests_path)
- puppet_config.manifest_file = attr(:manifest_file) if attr(:manifest_file)
- puppet_config.module_path = attr(:module_path) if attr(:module_path)
- puppet_config.facter = attr(:facter) if attr(:facter)
- puppet_config.options = attr(:options) if attr(:options)
+ with_attr(:manifests_path) { |val| puppet_config.manifests_path = val }
+ with_attr(:manifest_file) { |val| puppet_config.manifest_file = val }
+ with_attr(:module_path) { |val| puppet_config.module_path = val }
+ with_attr(:facter) { |val| puppet_config.facter = val }
+ with_attr(:options) { |val| puppet_config.options = val }
end
end
end
ConfigBuilder::Model::Provisioner.register('puppet', self)