bin/ryespy in ryespy-1.0.0 vs bin/ryespy in ryespy-1.1.0

- old
+ new

@@ -29,12 +29,13 @@ opts.on("-l", "--listener LISTENER", [ 'imap', 'ftp', 'amzn-s3', 'goog-cs', + 'goog-drv', 'rax-cf', - ], "Listener (imap|ftp|amzn-s3|goog-cs|rax-cf)") do |o| + ], "Listener (imap|ftp|amzn-s3|goog-cs|goog-drv|rax-cf)") do |o| options[:listener] = o.tr('-', '_').to_sym end opts.separator "" opts.separator "Polling:" @@ -147,12 +148,27 @@ end opts.on("--goog-cs-prefixes [P1,P2]", Array, "Prefixes P1,P2 (default: *)") do |o| options[:goog_cs_filters] = o end - + opts.separator "" + opts.separator "--listener goog-drv (Google Drive) :" + + opts.on("--goog-drv-username USERNAME", "USERNAME") do |o| + options[:goog_drv_username] = o + end + + opts.on("--goog-drv-password PASSWORD", "PASSWORD") do |o| + options[:goog_drv_password] = o + end + + opts.on("--goog-drv-filters [F1,F2]", Array, "Filters F1,F2 (default: *)") do |o| + options[:goog_drv_filters] = o + end + + opts.separator "" opts.separator "--listener rax-cf (Rackspace Cloud Files) :" opts.on("--rax-cf-endpoint [ENDPOINT]", "Auth ENDPOINT (default: us)") do |o| options[:rax_cf_endpoint] = o end @@ -267,9 +283,14 @@ :goog_cs => [ :access_key, :secret_key, :bucket, :filters, # prefixes + ], + :goog_drv => [ + :username, + :password, + :filters, ], :rax_cf => [ :endpoint, :region, :username,