<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/gems.template.yml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,7 @@
 == 0.0.3 2008-09-02
+* Add a setup command to drop a gems.yml template in place
+
+== 0.0.3 2008-09-02
 * Fix the borked binary, not sure why this didn't show up previously
 
 == 0.0.2 2008-08-06</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -13,12 +13,17 @@ Doesn't yet work in Windows
 
 == SYNOPSIS:
 
-I use this to manage gem versions in my apps, it has a rake task to install gems 
+I use this to manage gem versions in my apps, it has a script to install gems 
 and a load utility to load them on startup.
 
+create a gems.yml in a new project
+&lt;pre&gt;&lt;code&gt;
+gemtools setup path/to/app
+&lt;/pre&gt;&lt;/code&gt;
+
 Install or update required gems
 &lt;pre&gt;&lt;code&gt;
-gem_tools install
+gemtools install
 &lt;/pre&gt;&lt;/code&gt;
 
 Make sure they are loaded with the right versions during startup, by adding the </diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@
 #  Created on 2008-8-2.
 #  Copyright (c) 2008. All rights reserved.
 
+require 'optparse'
 require File.dirname(__FILE__) + '/../lib/gem_tools'
 
 begin
@@ -13,12 +14,9 @@ rescue LoadError =&gt; e
   exit 1
 end
 
-require 'optparse'
-
 command = ARGV.first
-
-OPTIONS = { }
-MANDATORY_OPTIONS = %w( )
+options = {}
+MANDATORY_OPTIONS = %w()
 
 parser = OptionParser.new do |opts|
   opts.banner = &lt;&lt;BANNER
@@ -37,22 +35,23 @@ Commands are:
 
 Options are:
 BANNER
+
   opts.separator &quot;&quot;
   opts.on(&quot;-d&quot;, &quot;--docs&quot;, String,
           &quot;Install the rdocs and ri during install&quot;,
-          &quot;Default: off&quot;) { |opts| OPTIONS[:docs] }
+          &quot;Default: off&quot;) { |opt| options[:docs] = opt }
   opts.on(&quot;-f&quot;, &quot;--force&quot;, String,
           &quot;Force the install of the gems&quot;,
-          &quot;Default: off&quot;) { |opts| OPTIONS[:force] }
+          &quot;Default: off&quot;) { |opt| options[:force] = opt }
   opts.on(&quot;-h&quot;, &quot;--help&quot;,
           &quot;Show this help message&quot;) { puts opts; exit }
   opts.parse!(ARGV)
 
-  if MANDATORY_OPTIONS &amp;&amp; MANDATORY_OPTIONS.find { |option| OPTIONS[option.to_sym].nil? }
+  if MANDATORY_OPTIONS &amp;&amp; MANDATORY_OPTIONS.find { |option| options[option.to_sym].nil? }
     puts opts; exit
   end
-  OPTS = opts
-end
+end.parse!
+
+OPTIONS = options
 
-# do stuff
 GemTools.run command</diff>
      <filename>bin/gemtools</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,18 @@ module GemTools
     send(cmd.to_sym) rescue help
   end
 
+  def setup
+    require 'fileutils'
+    dest_file = File.join(ARGV[1], '/config/gems.yml')
+    if File.exist?(dest_file) &amp;&amp; ! OPTIONS.has_key?(:force)
+      puts &quot;#{dest_file} already exists.\n\ngemtools install #{ARGV[1]} --force\n\nto overwrite&quot;
+      exit 1
+    else 
+      FileUtils.copy(File.join(File.dirname(__FILE__), '../config/gems.template.yml'), dest_file)
+      puts &quot;#{dest_file} created&quot;
+    end
+  end
+
   def load_gems
     config = load_config
     unless config['gems'].nil?</diff>
      <filename>lib/gem_tools.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module GemTools
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 0
-    TINY  = 3
+    TINY  = 4
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/gem_tools/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4018f753ee6f6630aed77456b2b9762a323a055c</id>
    </parent>
  </parents>
  <author>
    <name>Michael Moen</name>
    <email>michael@underpantsgnome.com</email>
  </author>
  <url>http://github.com/UnderpantsGnome/gem_tools-gem/commit/81d203f7f9898173a32e944da2ed7776416f5084</url>
  <id>81d203f7f9898173a32e944da2ed7776416f5084</id>
  <committed-date>2008-09-03T18:42:11-07:00</committed-date>
  <authored-date>2008-09-03T18:42:11-07:00</authored-date>
  <message>add the setup command</message>
  <tree>0989ddc377288b25bacbab802baedcb09a1e9c24</tree>
  <committer>
    <name>Michael Moen</name>
    <email>michael@underpantsgnome.com</email>
  </committer>
</commit>
