Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97259439
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
Fri, Jan 3, 20:51
Size
632 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 20:51 (1 d, 23 h)
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