YandexDisk::Config
Inherits YAML::Serializable < Reference < Object
The whole sync job, as loaded from YAML.
Constructors
new
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
chunk_size=(chunk_size : String)
Files larger than this are uploaded in resumable chunks of this size.
chunk_size_bytes
Sourcenormalized_remote_root
Sourceresolve_token
Resolves the OAuth token from the config file, a token file, or the environment — in that order.
retention=(retention : RetentionConfig | Nil)
Default retention, applied to every source that does not override it.
retention_for(source : Source) : RetentionConfig | Nil
Retention that applies to source, falling back to the global policy.
retry
Sourceretry=(retry : RetryConfig)
Sourceskip_unchanged=(skip_unchanged : Bool)
Skip a file when the remote copy already has the same size and MD5.
sources
SourceOAuth token. Prefer token_file or the environment over inlining it.
File to read the OAuth token from, e.g. /etc/yandex-disk/token.
validate!
Sourceverify_checksum
Compare MD5 as well as size. Turning this off skips hashing large files but will also skip re-uploading a file that changed in place without changing size.