Permalink
Browse files

Added naive start-migration fucntion

  • Loading branch information...
0 parents commit 2d7b7d336020ea29875418e400be5e0908f78d5a @chaliy committed Apr 16, 2011
@@ -0,0 +1,25 @@
+function Start-Migration {
+[CmdletBinding()]
+Param(
+
+)
+ Get-ChildItem *.ps1 | %{
+ Invoke-Expression (Get-Content $_.FullName)
+ }
+
+<#
+.Synopsis
+ Migrate stuff from current directory.
+.Description
+.Example
+ Start-Migration
+
+ Description
+ -----------
+ Starts migration
+
+#>
+}
+
+
+Export-ModuleMember Start-Migration
@@ -0,0 +1 @@
+write-host "Step #1"
@@ -0,0 +1 @@
+write-host "Step #2"
@@ -0,0 +1,12 @@
+push-location
+$here = (Split-Path -parent $MyInvocation.MyCommand.Definition)
+import-module -name $here\PsMigrator\PsMigrator.psm1
+
+push-location
+set-location $here\TestMigrations\SimpleMigration
+start-migration
+
+push-location
+
+
+pop-location

0 comments on commit 2d7b7d3

Please sign in to comment.