summaryrefslogtreecommitdiff
path: root/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-09-25 19:08:30 +0300
committerLars Wirzenius <liw@liw.fi>2016-09-25 19:08:30 +0300
commitec218d0a7dbb841796545a4b5d2b609b3002a7c8 (patch)
tree14a2d75b92b6e5735ae583c658ebb0cb58cf782a /900-implements.yarn
parent77cd6c78b870e316bd9136d4148dc6b17b7b9d09 (diff)
downloadserver-yarns-ec218d0a7dbb841796545a4b5d2b609b3002a7c8.tar.gz
Implement server aliasing with yarnhelper
Diffstat (limited to '900-implements.yarn')
-rw-r--r--900-implements.yarn4
1 files changed, 3 insertions, 1 deletions
diff --git a/900-implements.yarn b/900-implements.yarn
index dbb63dd..a424cec 100644
--- a/900-implements.yarn
+++ b/900-implements.yarn
@@ -3,7 +3,9 @@
## Server aliases
IMPLEMENTS GIVEN server is also known as (\S+)
- pass
+ import yarnhelper
+ h = yarnhelper.YarnHelper()
+ h.set_variable('SERVER', h.get_next_match())
## HTTP requests