Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97905283
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
Tue, Jan 7, 10:09
Size
632 B
Mime Type
text/x-php
Expires
Thu, Jan 9, 10:09 (2 d)
Engine
blob
Format
Raw Data
Handle
23294096
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