Skip to content

Commit

Permalink
s3: enabling incremental upload by default
Browse files Browse the repository at this point in the history
  • Loading branch information
glaszig committed Jan 11, 2016
1 parent d4106ef commit 8f54c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/octopress-deploy/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(options)
@distro_id = options[:distribution_id] || ENV['AWS_DISTRIBUTION_ID']
@remote_path = (options[:remote_path] || '/').sub(/^\//,'')
@verbose = options[:verbose]
@incremental = options[:incremental]
@incremental = options[:incremental] || true
@delete = options[:delete]
@headers = options[:headers] || []
@remote_path = @remote_path.sub(/^\//,'') # remove leading slash
Expand Down Expand Up @@ -270,7 +270,7 @@ def self.default_config(options={})
#{"remote_path: #{options[:remote_path] || '/'}".ljust(40)} # relative path on bucket where files should be copied.
#{"region: #{options[:remote_path] || 'us-east-1'}".ljust(40)} # Region where your bucket is located.
#{"verbose: #{options[:verbose] || 'false'}".ljust(40)} # Print out all file operations.
#{"incremental: #{options[:incremental] || 'false'}".ljust(40)} # Only upload new/changed files
#{"incremental: #{options[:incremental] || 'true'}".ljust(40)} # Only upload new/changed files
#{"delete: #{options[:delete] || 'false'}".ljust(40)} # Remove files from destination which do not match source files.
#{"parallel: #{options[:parallel] || 'true'}".ljust(40)} # Speed up deployment by uploading files in parallel.
CONFIG
Expand Down

0 comments on commit 8f54c0c

Please sign in to comment.