class

YandexDisk::Source

Inherits YAML::Serializable < Reference < Object

One local directory to mirror onto the Disk.

Constructors

new(path : String, patterns : Array(String) = ["*"])
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

exclude

Globs that exclude a file even when it matched patterns.

Source
exclude=(exclude : Array(String))

Globs that exclude a file even when it matched patterns.

Source
path

Local directory to scan.

Source
path=(path : String)

Local directory to scan.

Source
patterns

Globs a file must match to be included. Matched against the file name.

Source
patterns=(patterns : Array(String))

Globs a file must match to be included. Matched against the file name.

Source
recursive

Descend into subdirectories, mirroring their structure remotely.

Source
recursive=(recursive : Bool)

Descend into subdirectories, mirroring their structure remotely.

Source
remote_dir_name
Source
remote_subdir

Remote directory under remote_root. Defaults to the local basename.

Source
remote_subdir=(remote_subdir : String | Nil)

Remote directory under remote_root. Defaults to the local basename.

Source
retention

Overrides the top-level retention policy for this source only.

Source
retention=(retention : RetentionConfig | Nil)

Overrides the top-level retention policy for this source only.

Source
validate!
Source