Commit f76ad65

unknown <mkhan@.arcresources.ca>
2009-10-13 19:08:41
got the app running with the command line args passing in correctly in the run task. found that the database command is not implemented.
1 parent aae998f
Changed files (3)
product
application
application.console
application.console
product/application/HelpCommand.cs
@@ -6,7 +6,6 @@ namespace gorilla.migrations
     {
         public void run_against(ConsoleArguments item)
         {
-
             System.Console.Out.WriteLine("Please provide the correct arguments");
         }
 
product/application.console/application.console/Program.cs
@@ -1,4 +1,5 @@
-using gorilla.migrations.console.infrastructure;
+using System;
+using gorilla.migrations.console.infrastructure;
 using gorilla.migrations.utility;
 
 namespace gorilla.migrations.console
@@ -7,20 +8,22 @@ namespace gorilla.migrations.console
     {
         static void Main(string[] args)
         {
-			try{
-				foreach( var arg in args) 
-					System.Console.Out.WriteLine("Recieved: {0}", arg);
+            try
+            {
+                foreach (var arg in args)
+                    System.Console.Out.WriteLine("Received: {0}", arg);
 
-				new WireUpContainer()
-					.then(new RegisterConsoleCommands())
-					.run();
+                new WireUpContainer()
+                    .then(new RegisterConsoleCommands())
+                    .run();
 
-				System.Console.Out.WriteLine("starting app");
-				Ioc.get_a<Console>().run_against(args);
-			}
-			catch (System.Exception ex){
-				System.Console.Out.WriteLine(ex);
-			}
+                System.Console.Out.WriteLine("starting app");
+                Ioc.get_a<Console>().run_against(args);
+            }
+            catch (Exception ex)
+            {
+                System.Console.Out.WriteLine(ex);
+            }
         }
     }
-}
+}
\ No newline at end of file
rakefile.rb
@@ -110,7 +110,8 @@ end
 task :run do
 	deploy_folder = File.join('artifacts','deploy')
 	sql_folder = "d:/development/mokhan/gorilla.migrations/product/sql/"
-	sh "#{deploy_folder}/#{Project.name}/#{Project.name}.console.exe -migrations_dir:'#{sql_folder}' -connection_string:'#{local_settings[:config_connectionstring]}' -data_provider:'System.Data.SqlClient'"
+	command_line = "\"-migrations_dir:'#{sql_folder}' -connection_string:'#{local_settings[:config_connectionstring]}' -data_provider:'System.Data.SqlClient'\""
+	sh "#{deploy_folder}/#{Project.name}/#{Project.name}.console.exe '#{command_line}'"
 end
 
 def copy_project_outputs(folder,extensions)