Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461507
job_template.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 1:34 AM
Size
450 B
Mime Type
text/plain
Expires
Tue, May 20, 1:34 AM (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
220081
Attached To
rARCHIVING archiving
job_template.rb
View Options
FactoryGirl
.
define
do
factory
:jobtemplate
,
class
:
JobTemplate
do
host
fileset
sequence
(
:name
)
{
|
n
|
"Job
#{
n
}
"
}
trait
:backup
do
job_type
:backup
schedule
end
trait
:restore
do
job_type
:restore
restore_location
'/tmp'
end
trait
:enabled
do
enabled
true
end
factory
:job_template
,
traits
:
[
:backup
]
factory
:enabled_job_template
,
traits
:
[
:backup
,
:enabled
]
end
end
Event Timeline
Log In to Comment