Sha256: bfcd4971f30f4c347542d651abc51e55bfe0c06971859e90f65a80f353c44640
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
require "multi_sync" MultiSync.configuration do |config| # config.verbose = false # turn on verbose logging (defaults to false) # config.force = false # force syncing of outdated_files (defaults to false) # config.run_on_build = true # when within a framework which `builds` assets, whether to sync afterwards (defaults to true) # config.sync_outdated_files = true # when an outdated file is found whether to replace it (defaults to true) # config.delete_abandoned_files = true # when an abondoned file is found whether to remove it (defaults to true) # config.upload_missing_files = true # when a missing file is found whether to upload it (defaults to true) # config.target_pool_size = 8 # how many threads you would like to open for each target (defaults to the amount of CPU core's your machine has) # config.max_sync_attempts = 1 # how many times a file should be retried if there was an error during sync (defaults to 3) end MultiSync.run do source :build { :type => :local, # :local is the source's type, current options are :local, :manifest :source_dir => "/path_to_your_build_folder", :targets => [ :www ] # an array of target names that this source should sync against # targets optional? default to all } target :www { :type => :aws, # :aws is the target's type, current options are :aws :target_dir => "your_aws_bucket", :destination_dir => "an_optional_directory_inside_your_aws_bucket", :credentials => { :region => "us-east-1", :aws_access_key_id => "super_secret", :aws_secret_access_key => "super_secret" } } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_sync-0.0.1 | examples/custom.rb |