summaryrefslogtreecommitdiff
path: root/example/gitano-admin/rules/defines.lace
diff options
context:
space:
mode:
Diffstat (limited to 'example/gitano-admin/rules/defines.lace')
-rw-r--r--example/gitano-admin/rules/defines.lace65
1 files changed, 0 insertions, 65 deletions
diff --git a/example/gitano-admin/rules/defines.lace b/example/gitano-admin/rules/defines.lace
deleted file mode 100644
index 64af8ca..0000000
--- a/example/gitano-admin/rules/defines.lace
+++ /dev/null
@@ -1,65 +0,0 @@
-# A useful set of defines
-
-# User/group related
-define is_admin group gitano-admin
-define is_owner owner ${user}
-
-define if_asanother as_user ~.
-
-# Self-related operations
-define op_whoami operation whoami
-define op_sshkey operation sshkey
-
-# Admin-related operations
-
-## Users
-define op_useradd operation useradd
-define op_userdel operation userdel
-define op_userlist operation userlist
-define op_useremail operation useremail
-define op_username operation username
-define op_user anyof op_userlist op_useradd op_userdel op_useremail op_username
-
-## Groups
-define op_grouplist operation grouplist
-define op_groupshow operation groupshow
-define op_groupadd operation groupadd
-define op_groupdel operation groupdel
-define op_groupadduser operation groupadduser
-define op_groupdeluser operation groupdeluser
-define op_groupaddgroup operation groupaddgroup
-define op_groupdelgroup operation groupdelgroup
-define op_groupdescription operation groupdescription
-define op_group anyof op_grouplist op_groupshow op_groupadd op_groupdel op_groupadduser op_groupdeluser op_groupaddgroup op_groupdelgroup op_groupdescription
-
-## Aggregation of admin ops
-define op_is_admin anyof op_user op_group
-
-# Primary repository-related operations
-define op_read operation read
-define op_write operation write
-define op_createrepo operation createrepo
-define op_renamerepo operation renamerepo
-define op_destroyrepo operation destroyrepo
-
-# Remote configuration operations
-define op_config_show operation config_show
-define op_config_set operation config_set
-define op_config_del operation config_del
-define op_is_config anyof op_config_show op_config_set op_config_del
-
-# Reference update related operations
-define op_createref operation createref
-define op_deleteref operation deleteref
-define op_fastforward operation updaterefff
-define op_forcedupdate operation updaterefnonff
-
-# Combinator operations
-define op_is_basic anyof op_read op_write
-define op_is_update anyof op_fastforward op_forcedupdate
-define op_is_normal anyof op_fastforward op_createref op_deleteref
-
-# Administration
-define is_admin_repo repository gitano-admin
-define is_gitano_ref ref ~^refs/gitano/
-define is_admin_ref ref refs/gitano/admin