Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F443797
SleepBuildStepImplementation.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SleepBuildStepImplementation.php
View Options
<?php
final
class
SleepBuildStepImplementation
extends
BuildStepImplementation
{
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
validateSettings
()
{
$settings
=
$this
->
getSettings
();
if
(
$settings
[
'seconds'
]
===
null
)
{
return
false
;
}
if
(!
is_int
(
$settings
[
'seconds'
]))
{
return
false
;
}
return
true
;
}
public
function
getSettingDefinitions
()
{
return
array
(
'seconds'
=>
array
(
'name'
=>
'Seconds'
,
'description'
=>
'The number of seconds to sleep for.'
,
'type'
=>
BuildStepImplementation
::
SETTING_TYPE_INTEGER
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 11:06 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64916
Default Alt Text
SleepBuildStepImplementation.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment