Skip to content

Instantly share code, notes, and snippets.

@vonwenm
Forked from ferventcoder/setup.cmd
Last active August 29, 2015 14:19
Show Gist options
  • Save vonwenm/5234f554710a7ed8d41a to your computer and use it in GitHub Desktop.
Save vonwenm/5234f554710a7ed8d41a to your computer and use it in GitHub Desktop.
@echo off
SET DIR=%~dp0%
@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%setup.ps1' %*"
pause
### install chocolatey ###
iex ((new-object net.webclient).DownloadString("http://chocolatey.org/install.ps1"))
# install nuget and ruby if they are missing
cinstm nuget.commandline
cinstm ruby
#perform ruby updates and get gems
gem update --system
gem install rake
gem install bundler
#restore the nuget packages
$nugetConfigs = Get-ChildItem '.\' -Recurse | ?{$_.name -match "packages\.config"} | select
foreach ($nugetConfig in $nugetConfigs) {
Write-Host "restoring packages from $($nugetConfig.FullName)"
nuget install $($nugetConfig.FullName) /OutputDirectory packages
}
rake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment