2020-09-01 04:54:39 +03:00
|
|
|
:: group-hook [landscape]:
|
2020-06-08 10:53:16 +03:00
|
|
|
::
|
2020-09-01 04:54:39 +03:00
|
|
|
:: allow syncing group data from foreign paths to local paths
|
2020-06-08 10:53:16 +03:00
|
|
|
::
|
2020-12-02 22:31:11 +03:00
|
|
|
/- *group, *invite-store, *resource
|
2020-06-08 10:53:16 +03:00
|
|
|
/+ default-agent, verb, dbug, store=group-store, grpl=group, pull-hook
|
2020-12-05 07:32:17 +03:00
|
|
|
~% %group-hook-top ..part ~
|
2020-06-08 10:53:16 +03:00
|
|
|
|%
|
|
|
|
+$ card card:agent:gall
|
|
|
|
::
|
|
|
|
++ config
|
|
|
|
^- config:pull-hook
|
|
|
|
:* %group-store
|
|
|
|
update:store
|
|
|
|
%group-update
|
|
|
|
%group-push-hook
|
2021-03-11 06:50:36 +03:00
|
|
|
0 0
|
2021-02-02 07:31:16 +03:00
|
|
|
%.n
|
2020-06-08 10:53:16 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
--
|
|
|
|
::
|
|
|
|
::
|
|
|
|
%- agent:dbug
|
|
|
|
%+ verb |
|
|
|
|
^- agent:gall
|
|
|
|
%- (agent:pull-hook config)
|
|
|
|
^- (pull-hook:pull-hook config)
|
|
|
|
|_ =bowl:gall
|
|
|
|
+* this .
|
|
|
|
def ~(. (default-agent this %|) bowl)
|
|
|
|
dep ~(. (default:pull-hook this config) bowl)
|
2021-02-02 07:31:16 +03:00
|
|
|
grp ~(. grpl bowl)
|
2020-06-08 10:53:16 +03:00
|
|
|
::
|
|
|
|
++ on-init on-init:def
|
|
|
|
++ on-save !>(~)
|
|
|
|
++ on-load on-load:def
|
|
|
|
++ on-poke on-poke:def
|
|
|
|
++ on-agent on-agent:def
|
|
|
|
++ on-watch on-watch:def
|
|
|
|
++ on-leave on-leave:def
|
|
|
|
++ on-peek on-peek:def
|
|
|
|
++ on-arvo on-arvo:def
|
|
|
|
++ on-fail on-fail:def
|
|
|
|
++ on-pull-nack
|
|
|
|
|= [=resource =tang]
|
|
|
|
^- (quip card _this)
|
2021-03-11 06:50:36 +03:00
|
|
|
%- (slog tang)
|
2020-12-11 07:57:20 +03:00
|
|
|
:_ this
|
|
|
|
=- [%pass / %agent [our.bowl %group-store] %poke -]~
|
2021-03-18 06:53:57 +03:00
|
|
|
group-update-0+!>([%remove-group resource ~])
|
2021-02-02 07:31:16 +03:00
|
|
|
::
|
2020-06-08 10:53:16 +03:00
|
|
|
++ on-pull-kick
|
|
|
|
|= =resource
|
|
|
|
^- (unit path)
|
|
|
|
`/
|
2021-02-02 07:31:16 +03:00
|
|
|
::
|
|
|
|
++ resource-for-update resource-for-update:grp
|
2020-06-08 10:53:16 +03:00
|
|
|
--
|