Skip to content

Commit

Permalink
Fix doc (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta authored Jul 6, 2024
1 parent e78459b commit 6ce554b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/source/yaml_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -345,24 +345,6 @@ Example:
Best regards,
Command Execution over SSH
--------------------------

The `ssh` executor allows us to execute commands on remote hosts over SSH.

.. code-block:: yaml
steps:
- name: step1
executor:
type: ssh
config:
user: dagu
ip: XXX.XXX.XXX.XXX
port: 22
key: /Users/dagu/.ssh/private.pem
command: /usr/sbin/ifconfig
Command Substitution
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -431,6 +413,24 @@ You can define functions in the DAG file and call them in steps. The ``params``
param1: 1
param2: 2
Command Execution over SSH
--------------------------

The `ssh` executor allows us to execute commands on remote hosts over SSH.

.. code-block:: yaml
steps:
- name: step1
executor:
type: ssh
config:
user: dagu
ip: XXX.XXX.XXX.XXX
port: 22
key: /Users/dagu/.ssh/private.pem
command: /usr/sbin/ifconfig
JSON Processing
-----------------

Expand Down

0 comments on commit 6ce554b

Please sign in to comment.