Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93121154
HarbormasterSleepBuildStepImplementation.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, Nov 26, 08:55
Size
866 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 08:55 (2 d)
Engine
blob
Format
Raw Data
Handle
22579201
Attached To
rPH Phabricator
HarbormasterSleepBuildStepImplementation.php
View Options
<?php
final
class
HarbormasterSleepBuildStepImplementation
extends
HarbormasterBuildStepImplementation
{
public
function
getName
()
{
return
pht
(
'Sleep'
);
}
public
function
getGenericDescription
()
{
return
pht
(
'Sleep for a specified number of seconds.'
);
}
public
function
getDescription
()
{
$settings
=
$this
->
getSettings
();
return
pht
(
'Sleep for %s seconds.'
,
$settings
[
'seconds'
]);
}
public
function
execute
(
HarbormasterBuild
$build
,
HarbormasterBuildTarget
$build_target
)
{
$settings
=
$this
->
getSettings
();
sleep
(
$settings
[
'seconds'
]);
}
public
function
getFieldSpecifications
()
{
return
array
(
'seconds'
=>
array
(
'name'
=>
pht
(
'Seconds'
),
'type'
=>
'int'
,
'required'
=>
true
,
'caption'
=>
pht
(
'The number of seconds to sleep for.'
),
),
);
}
}
Event Timeline
Log In to Comment