Commit 679ee452 authored by Elliando Dias's avatar Elliando Dias
Browse files

flyway.commandline package added

parent 9f5b929d
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>flyway.commandline</id>
<title>Flyway, the agile database migration framework for Java</title>
<version>1.6.1</version>
<authors>flyway Team</authors>
<owners>Elliando Dias</owners>
<summary>Flyway is database-independent library for tracking, managing and applying database changes</summary>
<description>Flyway is database-independent library for tracking, managing and applying database changes</description>
<projectUrl>http://code.google.com/p/flyway/wiki/CommandLine</projectUrl>
<tags>flyway database migration</tags>
<copyright>Copyright (C) 2010-2012</copyright>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/adorepump/chocolatey-packages/raw/master/flyway.commandline/flyway.png</iconUrl>
<dependencies>
<dependency id="binRoot"/>
</dependencies>
<releaseNotes></releaseNotes>
</metadata>
</package>
\ No newline at end of file
#import-module C:\Chocolatey\chocolateyInstall\helpers\chocolateyInstaller
function get-binRoot() {
if($env:chocolatey_bin_root -ne $null) {
$binRoot = $env:chocolatey_bin_root
}
else {
$binRoot = 'bin'
}
return Join-Path $env:systemdrive $binRoot
}
$version = '1.6.1'
$name = "flyway-commandline-$version"
$url = "http://flyway.googlecode.com/files/$name-dist.zip"
$binRoot = get-binRoot
$flyway_home = Join-Path $binRoot $name
$flyway_cmd_source = Join-Path $flyway_home 'flyway.cmd'
$flyway_cmd_dest = Join-Path $env:CHOCOLATEYINSTALL 'bin\flyway.cmd'
Install-ChocolateyZipPackage 'flyway.commandline' $url $binRoot
"@echo off
$flyway_cmd_source %*" | Out-File $flyway_cmd_dest -encoding ASCII
"
flyway.commandline usage:
flyway.cmd [options] command
flyway.cmd -configFile=file.properties" | Write-Host
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment