merged topfunkys changes to commands

This commit is contained in:
Chris Anderson 2008-09-11 22:48:03 -07:00
commit a36d71bcd3

View file

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require 'optparse'
require File.dirname(__FILE__) + "/../lib/couch_rest/commands"
require File.dirname(__FILE__) + "/../lib/couchrest"
# Set defaults
options = {
@ -36,12 +36,6 @@ unless (["push", "generate"].include?(options[:command]) && options[:directory]
exit
end
# The options hash now contains the resolved defaults
# and the overrides from the command line.
# Call your class and send it the options here
# cr = CouchRest::FileManager.new(options[:database_name])
case options[:command]
when "push"
CouchRest::Commands::Push.run(options)