<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/ginatra-daemon</filename>
    </added>
    <added>
      <filename>bin/ginatra-directory</filename>
    </added>
    <added>
      <filename>bin/ginatra-server</filename>
    </added>
    <added>
      <filename>vendor/vegas</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,4 +8,6 @@ spec/*.html
 public/*/
 public/*.html
 _site
-_layouts
\ No newline at end of file
+_layouts
+**/*.swp
+*.swp</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-[submodule &quot;sinatra&quot;]
-	path = sinatra
-	url = git://github.com/sinatra/sinatra.git
+[submodule &quot;vendor/vegas&quot;]
+	path = vendor/vegas
+	url = git://github.com/quirkey/vegas.git</diff>
      <filename>.gitmodules</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,58 @@
 current_path = File.expand_path(File.dirname(__FILE__))
 
 require &quot;#{current_path}/../lib/ginatra&quot;
-require 'vegas'
-pid = Kernel.fork { system &quot;git daemon --base-path=#{Ginatra::Config.git_dir} --export-all&quot; }
-Vegas::Runner.new(Ginatra::App, 'ginatra-app', :port =&gt; Ginatra::Config.port)
-trap(&quot;INT&quot;, &quot;HUP&quot;, &quot;TERM&quot;) do
-  Process.kill(pid)
-  puts &quot;Farewell.&quot;
+
+module Ginatra::Executable
+  HELP = &lt;&lt;HELP
+Usage: ginatra [ version | server &lt;options&gt; &lt;command&gt; |
+                 daemon &lt;command&gt; | directory &lt;command&gt; &lt;args&gt; ]
+
+Ginatra Commands:
+  version - Pretty Self explanatory. Print version number and exit
+
+Ginatra Server Commands:
+  start   - Start the Ginatra HTTP Server.
+  stop    - Stop the Ginatra Server.
+  status  - How's your Ginatra Server holding up?
+
+Ginatra Daemon Commands:
+  start   - Starts the Git Daemon servimg Ginatra's Repositories
+  stop    - Stops the Git Daemon
+  restart - Restarts the Git Daemon
+  status  - Is the Git Daemon on or off?
+
+
+Ginatra Directory Commands:
+  add     - Adds the &lt;globs&gt; to the array of dirs that Ginatra
+              looks in for repositories.
+  remove  - Removes the &lt;globs&gt; from the aforementioned array.
+  list    - Lists the globs Ginatra looks in for repositories
+
+HELP
+
+  @current_path = File.expand_path(File.dirname(__FILE__))
+
+  def self.daemon(*args)
+    system(&quot;#{@current_path}/ginatra-daemon #{args.join(&quot; &quot;)}&quot;)
+  end
+
+  def self.directory(*args)
+    system(&quot;#{@current_path}/ginatra-directory #{args.join(&quot; &quot;)}&quot;)
+  end
+
+  def self.server(*args)
+    system(&quot;#{@current_path}/ginatra-server #{args.join(&quot; &quot;)}&quot;)
+  end
+
+  def self.version(*args)
+    puts Ginatra::VERSION
+  end
+end
+
+command, *args = ARGV[0], ARGV[1..-1]
+if command !~ /^(version|daemon|directory|server)$/
+  puts Ginatra::Executable::HELP
+  exit
 end
+Ginatra::Executable.send(command, *args)
 </diff>
      <filename>bin/ginatra</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@ module Ginatra
     end
   end
 
-  VERSION = &quot;0.9.9&quot;
+  VERSION = &quot;1.1.0&quot;
 
   class App &lt; Sinatra::Base
 </diff>
      <filename>lib/ginatra.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Ginatra
   class Config
 
     current_path = File.expand_path(&quot;#{File.dirname(__FILE__)}&quot;)
-    CONFIG_PATH = File.expand_path(&quot;~/.ginatra&quot;)
+    CONFIG_PATH = File.expand_path(&quot;~/.ginatra/config.yml&quot;)
     DEFAULT_CONFIG = {
       :git_dirs =&gt; [File.expand_path(&quot;#{current_path}/../../repos/*&quot;)],
       :ignored_files =&gt; ['README.md'],
@@ -52,4 +52,4 @@ module Ginatra
     end
 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/ginatra/config.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5eb789dd2b13970770464ee55e5923070666dfe7</id>
    </parent>
  </parents>
  <author>
    <name>Samuel Elliott</name>
    <email>sam@lenary.co.uk</email>
  </author>
  <url>http://github.com/lenary/ginatra/commit/a3327a5f3e0b8f91454100d71f78643b1f1f3132</url>
  <id>a3327a5f3e0b8f91454100d71f78643b1f1f3132</id>
  <committed-date>2009-08-25T14:28:47-07:00</committed-date>
  <authored-date>2009-08-25T14:28:47-07:00</authored-date>
  <message>Added Loads of Ginatra executables and submoduled vegas for its new
features. Closes GH-16

Lots of new Ginatra Commands relating to starting and stopping the server, starting and stopping the daemon and adding and removing glob-paths from the config.</message>
  <tree>0cb61188f7ca04dbc8d999b9ed74397b2110b6be</tree>
  <committer>
    <name>Samuel Elliott</name>
    <email>sam@lenary.co.uk</email>
  </committer>
</commit>
