Skip to content

| Public | A vagrant provisioner plugin that downloads files from guest to host via winrm

License

Notifications You must be signed in to change notification settings

OctopusDeploy/vagrant-winrm-file-download

Repository files navigation

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:

git clone git@github.com: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

  1. update the version number in the lib/vagrant-winrm-file-download.rb
  2. run gem build .\vagrant-winrm-file-download.gemspec

Contributing

  1. Create a github issue to discuss your idea
  2. Fork it ( https://github.com/[your-github-username]/vagrant-winrm-file-download/fork )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes, including relevant tests (git commit -am 'Add some feature')
  5. Squash commits & push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

About

| Public | A vagrant provisioner plugin that downloads files from guest to host via winrm

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages