Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852619
PhabricatorRepositoryManagementPullWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorRepositoryManagementPullWorkflow.php
View Options
<?php
final
class
PhabricatorRepositoryManagementPullWorkflow
extends
PhabricatorRepositoryManagementWorkflow
{
protected
function
didConstruct
(
)
{
$this
->
setName
(
'pull'
)
->
setExamples
(
'**pull** __repository__ ...'
)
->
setSynopsis
(
pht
(
'Pull __repository__.'
)
)
->
setArguments
(
array
(
array
(
'name'
=>
'verbose'
,
'help'
=>
pht
(
'Show additional debugging information.'
)
,
)
,
array
(
'name'
=>
'ignore-locality'
,
'help'
=>
pht
(
'Pull even if the repository should not be present on this '
.
'host according to repository cluster configuration.'
)
,
)
,
array
(
'name'
=>
'repos'
,
'wildcard'
=>
true
,
)
,
)
)
;
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$ignore_locality
=
(bool)
$args
->
getArg
(
'ignore-locality'
)
;
$repos
=
$this
->
loadLocalRepositories
(
$args
,
'repos'
,
$ignore_locality
)
;
if
(
!
$repos
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'Specify one or more repositories to pull.'
)
)
;
}
$console
=
PhutilConsole
::
getConsole
(
)
;
foreach
(
$repos
as
$repo
)
{
$console
->
writeOut
(
"%s\n"
,
pht
(
'Pulling "%s"...'
,
$repo
->
getDisplayName
(
)
)
)
;
id
(
new
PhabricatorRepositoryPullEngine
(
)
)
->
setRepository
(
$repo
)
->
setVerbose
(
$args
->
getArg
(
'verbose'
)
)
->
pullRepository
(
)
;
}
$console
->
writeOut
(
"%s\n"
,
pht
(
'Done.'
)
)
;
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:44 (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1760617
Default Alt Text
PhabricatorRepositoryManagementPullWorkflow.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment