Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1299825
pools_controller.rb
No One
Temporary
Actions
Download 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
Wed, Nov 19, 2:12 AM
Size
710 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 2:12 AM (14 h, 58 m)
Engine
blob
Format
Raw Data
Handle
290089
Attached To
rARCHIVING archiving
pools_controller.rb
View Options
class
Admin
::
PoolsController
<
Admin
::
BaseController
# GET /admin/pools
def
index
@pools
=
Pool
.
all
end
# GET /admin/pools/new
def
new
@pool
=
Pool
.
new
end
# POST /admin/pools
def
create
@pool
=
Pool
.
new
(
fetch_params
)
if
@pool
.
submit_to_bacula
flash
[
:success
]
=
'Pool created succesfully'
redirect_to
admin_pools_path
else
flash
[
:alert
]
=
'Pool not created'
render
:new
end
end
private
def
fetch_params
params
.
require
(
:pool
)
.
permit
(
[
:name
,
:name_confirmation
,
:vol_retention
,
:use_once
,
:auto_prune
,
:recycle
,
:max_vols
,
:max_vol_jobs
,
:max_vol_files
,
:max_vol_bytes
,
:label_format
]
)
end
end
Event Timeline
Log In to Comment