aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/create_upload_dir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/manifests/create_upload_dir.rb')
-rw-r--r--modules/buildsystem/manifests/create_upload_dir.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/create_upload_dir.rb b/modules/buildsystem/manifests/create_upload_dir.rb
new file mode 100644
index 00000000..536180e2
--- /dev/null
+++ b/modules/buildsystem/manifests/create_upload_dir.rb
@@ -0,0 +1,23 @@
+define "create_upload_dir", :owner do
+
+ states = ["todo","done","failure","queue","rejected"]
+ releases = ["cauldron"]
+ repositories = ["core","nonfree","tainted"]
+ medias = ['release']
+
+ for st in states do
+ file [@name, st].join('/'), :ensure => 'directory', :owner => @owner
+
+ for rel in releases do
+ file [@name, st, rel].join('/'), :ensure => 'directory', :owner => @owner
+
+ for rep in repositories do
+ file [@name, st, rel, rep].join('/'), :ensure => 'directory', :owner => @owner
+
+ for med in medias do
+ file [@name, st, rel, rep, med].join('/'), :ensure => 'directory', :owner => @owner
+ end
+ end
+ end
+ end
+end