merged topfunkys changes to commands
This commit is contained in:
commit
a36d71bcd3
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require File.dirname(__FILE__) + "/../lib/couch_rest/commands"
|
require File.dirname(__FILE__) + "/../lib/couchrest"
|
||||||
|
|
||||||
# Set defaults
|
# Set defaults
|
||||||
options = {
|
options = {
|
||||||
|
@ -36,12 +36,6 @@ unless (["push", "generate"].include?(options[:command]) && options[:directory]
|
||||||
exit
|
exit
|
||||||
end
|
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]
|
case options[:command]
|
||||||
when "push"
|
when "push"
|
||||||
CouchRest::Commands::Push.run(options)
|
CouchRest::Commands::Push.run(options)
|
||||||
|
|
Loading…
Reference in a new issue