Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100783642
NuanceManagementUpdateWorkflow.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
Sun, Feb 2, 17:42
Size
688 B
Mime Type
text/x-php
Expires
Tue, Feb 4, 17:42 (2 d)
Engine
blob
Format
Raw Data
Handle
24033654
Attached To
rPH Phabricator
NuanceManagementUpdateWorkflow.php
View Options
<?php
final
class
NuanceManagementUpdateWorkflow
extends
NuanceManagementWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'update'
)
->
setExamples
(
'**update** --item __item__ [__options__]'
)
->
setSynopsis
(
pht
(
'Update or route an item.'
))
->
setArguments
(
array
(
array
(
'name'
=>
'item'
,
'param'
=>
'item'
,
'help'
=>
pht
(
'Choose which item to route.'
),
),
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$item
=
$this
->
loadItem
(
$args
,
'item'
);
PhabricatorWorker
::
setRunAllTasksInProcess
(
true
);
$item
->
scheduleUpdate
();
return
0
;
}
}
Event Timeline
Log In to Comment