-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
============== | ||
Remote Editing | ||
============== | ||
|
||
|
||
Setup | ||
===== | ||
|
||
Initial setup is the same as for :ref:`syncing-configs`. | ||
|
||
The most important thing is this one: | ||
|
||
.. code-block:: yaml | ||
:emphasize-lines: 3 | ||
directory: /etc/daemonio-configs | ||
num-levels: 1 | ||
append-only: false | ||
upload-keys: [my_daemonio] | ||
Client setup is also the same. If you can ``sync --replace`` you can also | ||
edit some file: | ||
|
||
|
||
How it Works | ||
============ | ||
|
||
.. code-block:: console | ||
ciruela edit server.name --dir /my-daemonio/current --file /config.yaml | ||
This will do the following: | ||
|
||
1. Download a specified file from a specified directory | ||
2. Launch whatever is specified in ``CIRUELA_EDITOR``, ``VISUAL`` or | ||
``EDITOR`` environment variables (in that order) or ``vim`` if none. | ||
2. If editor is exited successfully upload the new file back to the original | ||
directory | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ In this examples we use all the defaults: | |
:caption: Contents: | ||
|
||
syncing-configs | ||
editing-configs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _syncing-configs: | ||
|
||
=============== | ||
Syncing Configs | ||
=============== | ||
|