Permalink
Browse files

commented all items that would be added during bootstrap

  • Loading branch information...
1 parent 4a62589 commit 66ab37f84e99310f7e27195e6abfaad4db3adb19 @jettro committed Nov 17, 2009
Showing with 27 additions and 26 deletions.
  1. +27 −26 grails-app/conf/BootStrap.groovy
@@ -1,32 +1,33 @@
import org.joda.time.DateTime
class BootStrap {
- def init = {servletContext ->
- def statussus = ['OK', 'WARNING', 'PROBLEM', 'COLD']
- statussus.each {
- statusName ->
- def newStatus = new Status(name: statusName)
- newStatus.save()
- }
-
- def vlans = [['Middleware', 'middle_dev'], ['Backend', 'backend_dev'], ['Beheer', 'maint_dev'], ['Backup', 'backup_dev']]
- vlans.each {
- vlanFunction, vlanName ->
- def newVlan = new Vlan(name: vlanName, function: vlanFunction)
- newVlan.save()
- }
-
- def environments = ['Development', 'Test', 'Acceptation', 'Production']
- environments.each {
- name ->
- def environment = new Environment(name: name, lastDeploy:new DateTime())
- environment.save()
- }
-
- def okStatus = Status.findByName("OK")
- def warningStatus = Status.findByName("WARNING")
- def errorStatus = Status.findByName("PROBLEM")
- def coldStatus = Status.findByName("COLD")
+ def init = {
+// servletContext ->
+// def statussus = ['OK', 'WARNING', 'PROBLEM', 'COLD']
+// statussus.each {
+// statusName ->
+// def newStatus = new Status(name: statusName)
+// newStatus.save()
+// }
+//
+// def vlans = [['Middleware', 'middle_dev'], ['Backend', 'backend_dev'], ['Beheer', 'maint_dev'], ['Backup', 'backup_dev']]
+// vlans.each {
+// vlanFunction, vlanName ->
+// def newVlan = new Vlan(name: vlanName, function: vlanFunction)
+// newVlan.save()
+// }
+//
+// def environments = ['Development', 'Test', 'Acceptation', 'Production']
+// environments.each {
+// name ->
+// def environment = new Environment(name: name, lastDeploy:new DateTime())
+// environment.save()
+// }
+//
+// def okStatus = Status.findByName("OK")
+// def warningStatus = Status.findByName("WARNING")
+// def errorStatus = Status.findByName("PROBLEM")
+// def coldStatus = Status.findByName("COLD")
}
def destroy = {

0 comments on commit 66ab37f

Please sign in to comment.