mason: use short host name not fully qualified host name

db4
Slava Pestov 2009-05-21 19:19:12 -05:00
parent a150fc9a7f
commit 16b39e2d6c
3 changed files with 5 additions and 5 deletions

View File

@ -5,9 +5,12 @@ math.functions make io io.files io.pathnames io.directories
io.directories.hierarchy io.launcher io.encodings.utf8 prettyprint
combinators.short-circuit parser combinators calendar
calendar.format arrays mason.config locals debugger fry
continuations strings ;
continuations strings io.sockets ;
IN: mason.common
: short-host-name ( -- string )
host-name "." split1 drop ;
SYMBOL: current-git-id
: short-running-process ( command -- )

View File

@ -10,7 +10,7 @@ IN: mason.notify
[
"ssh" , status-host get , "-l" , status-username get ,
"./mason-notify" ,
host-name ,
short-host-name ,
target-cpu get ,
target-os get ,
] { } make prepend

View File

@ -7,9 +7,6 @@ prettyprint sequences xml.syntax xml.writer combinators.short-circuit
literals splitting ;
IN: mason.report
: short-host-name ( -- string )
host-name "." split1 drop ;
: common-report ( -- xml )
target-os get
target-cpu get