bin/sup-sync in sup-0.10.2 vs bin/sup-sync in sup-0.11
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
require 'uri'
require 'rubygems'
require 'trollop'
-require "sup"; Redwood::check_library_version_against "0.10.2"
+require "sup"; Redwood::check_library_version_against "0.11"
PROGRESS_UPDATE_INTERVAL = 15 # seconds
class Float
def to_s; sprintf '%.2f', self; end
@@ -74,11 +74,10 @@
text <<EOS
Other options:
EOS
- opt :index, "Use this index type ('auto' for autodetect)", :default => "auto"
opt :verbose, "Print message ids as they're processed."
opt :optimize, "As the final operation, optimize the index."
opt :all_sources, "Scan over all sources.", :short => :none
opt :dry_run, "Don't actually modify the index. Probably only useful with --verbose.", :short => "-n"
opt :version, "Show version information", :short => :none
@@ -94,10 +93,10 @@
target = [:new, :changed, :all, :restored].find { |x| opts[x] } || :new
op = [:asis, :restore, :discard].find { |x| opts[x] } || :asis
Redwood::start
-index = Redwood::Index.init opts[:index]
+index = Redwood::Index.init
restored_state = if opts[:restore]
dump = {}
puts "Loading state dump from #{opts[:restore]}..."
IO.foreach opts[:restore] do |l|