Skip to content

Commit

Permalink
Add reference documentation for the globus_endpoints parameter (#819)
Browse files Browse the repository at this point in the history
* Add reference documentation for the globus_endpoints parameter, to enable the Globus button (OSC/ondemand#2858)

* Updated with new format of globus_endpoints property

* Add an example using the home directory of the current user

* use etc instead of currentuser

 Etc.getpwnam(Etc.getlogin).dir is safer to use than currentuser at the moment.

---------

Co-authored-by: David Kelly <[email protected]>
Co-authored-by: Jeff Ohrstrom <[email protected]>
  • Loading branch information
3 people authored Jul 13, 2023
1 parent 62ab6f4 commit 43209b3
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions source/reference/files/ondemand-d-ymls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -728,3 +728,56 @@ Configuration Properties
.. code-block:: yaml
hide_app_version: true
.. describe:: globus_endpoints (Array<Object>, null)

Add a Globus button to the file browser that opens the current directory
in the Globus transfer web app.

Default
Null, do not enable the Globus button

Example
Use a single endpoint for the whole filesystem.

.. code-block:: yaml
globus_endpoints:
- path "/"
endpoint: "716de4ac-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
endpoint_path "/"
Example
Use multiple endpoints.

.. code-block:: yaml
globus_endpoints:
- path: "/home"
endpoint: "716de4ac-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
endpoint_path: "/home"
- path: "/project"
endpoint: "9f1fe759-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
endpoint_path: "/project"
Example
When pathnames differ between the filesystem and endpoint.

.. code-block:: yaml
globus_endpoints:
- path: "/project"
endpoint: "9f1fe759-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
endpoint_path: "/"
Example
Reference the home directory of the current user.

.. code-block:: yaml
globus_endpoints:
- path: "<%= Etc.getpwnam(Etc.getlogin).dir %>"
endpoint: "9f1fe759-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
endpoint_path: "/"

0 comments on commit 43209b3

Please sign in to comment.