Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Jul 6, 2024
1 parent e78459b commit 233d1f1
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 233d1f1

Please sign in to comment.