Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122009261
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, Jul 15, 07:34
Size
632 B
Mime Type
text/x-php
Expires
Thu, Jul 17, 07:34 (2 d)
Engine
blob
Format
Raw Data
Handle
27423727
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