2010-04-11 21:42:12 -04:00
|
|
|
! Copyright (C) 2010 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: accessors calendar io io.encodings.ascii io.launcher
|
|
|
|
kernel make mason.config namespaces ;
|
2010-09-17 02:52:49 -04:00
|
|
|
IN: webapps.mason.version.common
|
2010-04-11 21:42:12 -04:00
|
|
|
|
|
|
|
: execute-on-server ( string -- )
|
2011-09-09 22:13:06 -04:00
|
|
|
[ "ssh" , package-host get , "-l" , package-username get , ] { } make
|
2010-04-11 21:42:12 -04:00
|
|
|
<process>
|
|
|
|
swap >>command
|
|
|
|
5 minutes >>timeout
|
|
|
|
ascii [ write ] with-process-writer ;
|