lib/sdbport/cli/export.rb in sdbport-0.3.0 vs lib/sdbport/cli/export.rb in sdbport-0.4.0

- old
+ new

@@ -17,11 +17,16 @@ domain = Domain.new :name => opts[:name], :region => opts[:region], :access_key => access_key, :secret_key => secret_key, :logger => logger - exit 1 unless domain.export opts[:output] + + if opts[:write_as_you_go] + exit 1 unless domain.export_sequential_write opts[:output] + else + exit 1 unless domain.export opts[:output] + end end def read_options Trollop::options do version Sdbport::VERSION @@ -42,9 +47,10 @@ opt :output, "Output File", :type => :string opt :region, "AWS Region", :type => :string opt :access_key, "AWS Access Key ID", :type => :string, :short => 'k' opt :secret_key, "AWS Secret Access Key", :type => :string + opt :write_as_you_go, "Write chunks to disk as they are received from Simple DB" end end end end end