Skip to content

Instantly share code, notes, and snippets.

@echohack
Created October 1, 2015 19:40
Show Gist options
  • Save echohack/633a2fec3b4e9b0482f7 to your computer and use it in GitHub Desktop.
Save echohack/633a2fec3b4e9b0482f7 to your computer and use it in GitHub Desktop.
Install a nuget package from a Windows Samba share
# Use this to mount a samba share on windows and install a nuget package
# Mounting samba shares sucks. Use an artifact repository to store binaries.
# But sometimes you don't have a choice...
include_recipe 'chocolatey'
mount 'n:' do
device '\\\\fqdn\\remotepath'
password 'password'
domain 'my_domain'
username 'username'
action :mount
end
chocolatey 'MyNugetPackage' do
source 'n:\\my\path'
end
batch 'unmount' do
code <<-EOH
net use n: /delete
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment