lib/config_builder/model/provisioner/file.rb in vagrant-config_builder-0.15.1 vs lib/config_builder/model/provisioner/file.rb in vagrant-config_builder-1.0.0.rc1

- old
+ new

@@ -1,24 +1,15 @@ # @see http://docs.vagrantup.com/v2/provisioning/file.html -class ConfigBuilder::Model::Provisioner::File < ConfigBuilder::Model::Base +class ConfigBuilder::Model::Provisioner::File < ConfigBuilder::Model::Provisioner::Base # @!attribute [rw] source # @return [Source] Is the local path of the file to be uploaded. def_model_attribute :source # @!attribute [rw] destination # @return [Source] Is the remote path on the guest machine where the file # will be uploaded to. The file is uploaded as the SSH user over SCP, so # this location must be writable to that user. The SSH user can be # determined by running vagrant ssh-config, and defaults to "vagrant". def_model_attribute :destination - - def to_proc - Proc.new do |vm_config| - vm_config.provision :file do |file_config| - with_attr(:source) { |val| file_config.source = val } - with_attr(:destination) { |val| file_config.destination = val } - end - end - end ConfigBuilder::Model::Provisioner.register('file', self) end