summaryrefslogtreecommitdiff
path: root/testing/02-commands-rsync.yarn
blob: c39cb194a36d6d6f355fb4ee4265aba038c4dfeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- -*- markdown -*- -->

rsync - Access per-repository rsync space
=========================================

Gitano will accept rsync server commands when the rsync plugin is enabled.

    SCENARIO rsync
    ASSUMING rsync is possible

Files may be copied into this space with
`rsync filename gituser@gitanoserver:repository/filename`.

    GIVEN a standard instance
      AND testfile contains foo
     WHEN testinstance adminkey rsync's testfile to gitano-admin.git

This copies into the `rsync` directory in the git repository on the server.

    THEN server-side gitano-admin.git file rsync/testfile contains foo

Files may be copied back out again as you normally would with rsync
i.e. `rsync gituser@gitanoserver:repository/filename filename`.

    GIVEN testfile contains bar
     WHEN testinstance adminkey rsync's testfile from gitano-admin.git
     THEN testfile contains foo

    FINALLY the instance is torn down