Vagrant WinRM File Downloader Plugin
This is a super simple vagrant provisioner plugin that allows you to download files from the guest to the host.
Installation
vagrant plugin install vagrant-winrm-file-download
Usage
In your Vagrantfile, add the following plugin and configure to your needs:
config.vm.provision "winrm-file-download" do |file|
file.source = 'c:\temp\foo.txt'
file.destination = 'c:\temp\foo-downloaded.txt'
end
Uninstallation
vagrant plugin uninstall vagrant-dsc
Development
Before getting started, read the Vagrant plugin development basics and packaging documentation.
Development was done against:
- Ruby 2.6.4
- Bundler 1.17.2, and
- vagrant master@9eac6ae62d6a, which is likely to be 2.2.6
git clone [email protected]:OctopusDeploy/vagrant-winrm-file-download.git
cd vagrant-winrm-file-download
bundle install
Run tests:
# tests are... not yet there
bundle exec rake spec
Run Vagrant in context of current vagrant-dsc plugin:
cd <directory>
bundle exec vagrant up
Building a new version
- update the version number in the
lib/vagrant-winrm-file-download.rb
- run
gem build .\vagrant-winrm-file-download.gemspec
Contributing
- Create a github issue to discuss your idea
- Fork it ( https://github.com/[your-github-username]/vagrant-winrm-file-download/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes, including relevant tests (
git commit -am 'Add some feature'
) - Squash commits & push to the branch (
git push origin my-new-feature
) - Create a new Pull Request