Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99946141
PhabricatorSSHWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jan 27, 10:03
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jan 29, 10:03 (2 d)
Engine
blob
Format
Raw Data
Handle
23854747
Attached To
rPH Phabricator
PhabricatorSSHWorkflow.php
View Options
<?php
abstract
class
PhabricatorSSHWorkflow
extends
PhabricatorManagementWorkflow
{
private
$user
;
private
$iochannel
;
private
$errorChannel
;
public
function
isExecutable
()
{
return
false
;
}
public
function
setErrorChannel
(
PhutilChannel
$error_channel
)
{
$this
->
errorChannel
=
$error_channel
;
return
$this
;
}
public
function
getErrorChannel
()
{
return
$this
->
errorChannel
;
}
public
function
setUser
(
PhabricatorUser
$user
)
{
$this
->
user
=
$user
;
return
$this
;
}
public
function
getUser
()
{
return
$this
->
user
;
}
public
function
setIOChannel
(
PhutilChannel
$channel
)
{
$this
->
iochannel
=
$channel
;
return
$this
;
}
public
function
getIOChannel
()
{
return
$this
->
iochannel
;
}
public
function
readAllInput
()
{
$channel
=
$this
->
getIOChannel
();
while
(
$channel
->
update
())
{
PhutilChannel
::
waitForAny
(
array
(
$channel
));
if
(!
$channel
->
isOpenForReading
())
{
break
;
}
}
return
$channel
->
read
();
}
public
function
writeIO
(
$data
)
{
$this
->
getIOChannel
()->
write
(
$data
);
return
$this
;
}
public
function
writeErrorIO
(
$data
)
{
$this
->
getErrorChannel
()->
write
(
$data
);
return
$this
;
}
protected
function
newPassthruCommand
()
{
return
id
(
new
PhabricatorSSHPassthruCommand
())
->
setErrorChannel
(
$this
->
getErrorChannel
());
}
}
Event Timeline
Log In to Comment