Skip to content

Commit

Permalink
SG-31044 Add default_storage_root hook in the list of core hooks (#924)
Browse files Browse the repository at this point in the history
* Add default_storage_root hook in the list of core hooks

* Fix RST syntax

* Add link to the example folder
  • Loading branch information
julien-lang authored Sep 21, 2023
1 parent dc934d4 commit 6766e56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ context_change.py
.. autoclass:: context_change.ContextChange
:members:

default_storage_root.py
~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: default_storage_root
.. autoclass:: default_storage_root.DefaultStorageRoot
:members:

engine_init.py
~~~~~~~~~~~~~~

Expand Down
6 changes: 3 additions & 3 deletions hooks/default_storage_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def execute(self, storage_roots, project_id=None, metadata=None):
Toolkit initialization.
You can find example implementations in the
tests/core_tests/test_default_storage_root_hook folder which
allow you to switch between storages if you have a different
storage root per project.
`tests/core_tests/test_default_storage_root_hook <https://github.com/shotgunsoftware/tk-core/tree/master/tests/core_tests/test_default_storage_root_hook>`_
folder which allow you to switch between storages if you have a
different storage root per project.
The default implementation does nothing.
Expand Down

0 comments on commit 6766e56

Please sign in to comment.