Skip to content

Make raw results accessible #12

@stepnivlk

Description

@stepnivlk

hi,
I'm working on project using Rsync as server and ruby-rsync is accessing this server.
On server there could be many modules and I need to list and parse them.

So I can do something like this:

test = Rsync.run("rsync://domain.domain", "")
=> #<Rsync::Result:0x000000014c3f28
 @exitcode=0,
 @raw="zabbix         \tzabbix config directory)\netc            \tmain config directory\n">

But in Result class, there is no attr_reader fo raw ouput. Also it would be nice to have some parser, which will ouput hash with separated name and comment.
When running this list command, in arguments there should be only source, no destination. I'm suggesting to make destination optional, but I know, it will brake something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions