merged topfunkys changes to commands
This commit is contained in:
commit
a36d71bcd3
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue