Skip to content

Commit 8f54c0c

Browse files
committed
s3: enabling incremental upload by default
1 parent d4106ef commit 8f54c0c

File tree

1 file changed

+2
-2
lines changed
  • lib/octopress-deploy

1 file changed

+2
-2
lines changed

lib/octopress-deploy/s3.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(options)
2020
@distro_id = options[:distribution_id] || ENV['AWS_DISTRIBUTION_ID']
2121
@remote_path = (options[:remote_path] || '/').sub(/^\//,'')
2222
@verbose = options[:verbose]
23-
@incremental = options[:incremental]
23+
@incremental = options[:incremental] || true
2424
@delete = options[:delete]
2525
@headers = options[:headers] || []
2626
@remote_path = @remote_path.sub(/^\//,'') # remove leading slash
@@ -270,7 +270,7 @@ def self.default_config(options={})
270270
#{"remote_path: #{options[:remote_path] || '/'}".ljust(40)} # relative path on bucket where files should be copied.
271271
#{"region: #{options[:remote_path] || 'us-east-1'}".ljust(40)} # Region where your bucket is located.
272272
#{"verbose: #{options[:verbose] || 'false'}".ljust(40)} # Print out all file operations.
273-
#{"incremental: #{options[:incremental] || 'false'}".ljust(40)} # Only upload new/changed files
273+
#{"incremental: #{options[:incremental] || 'true'}".ljust(40)} # Only upload new/changed files
274274
#{"delete: #{options[:delete] || 'false'}".ljust(40)} # Remove files from destination which do not match source files.
275275
#{"parallel: #{options[:parallel] || 'true'}".ljust(40)} # Speed up deployment by uploading files in parallel.
276276
CONFIG

0 commit comments

Comments
 (0)