Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96313113
DrydockSSHCommandInterface.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
Wed, Dec 25, 03:01
Size
632 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 03:01 (1 d, 12 h)
Engine
blob
Format
Raw Data
Handle
23146416
Attached To
rPH Phabricator
DrydockSSHCommandInterface.php
View Options
<?php
final
class
DrydockSSHCommandInterface
extends
DrydockCommandInterface
{
public
function
getExecFuture
(
$command
)
{
$argv
=
func_get_args
();
$argv
=
$this
->
applyWorkingDirectoryToArgv
(
$argv
);
$full_command
=
call_user_func_array
(
'csprintf'
,
$argv
);
// NOTE: The "-t -t" is for psuedo-tty allocation so we can "sudo" on some
// systems, but maybe more trouble than it's worth?
return
new
ExecFuture
(
'ssh -t -t -o StrictHostKeyChecking=no -i %s %s@%s -- %s'
,
$this
->
getConfig
(
'ssh-keyfile'
),
$this
->
getConfig
(
'user'
),
$this
->
getConfig
(
'host'
),
$full_command
);
}
}
Event Timeline
Log In to Comment