Add separators in spec.

This commit is contained in:
Julien Fontanet
2014-10-01 14:04:18 +02:00
parent 659f9a8f18
commit 260094a666

View File

@@ -221,6 +221,8 @@ module.exports = ->
rules = (rules, definition) =>
@rule rule, definition for rule in rules
#===================================================================
# An item is equivalent to a rule but one and only one instance of
# this rule is created without any generator.
@item xo: ->
@@ -267,6 +269,8 @@ module.exports = ->
$UUIDsToKeys: UUIDsToKeys
}
#-------------------------------------------------------------------
@rule pool: ->
@val = {
name_label: -> @genval.name_label
@@ -330,6 +334,8 @@ module.exports = ->
$sessionId : -> @genval.$sessionId ? @val.$sessionId
}
#-------------------------------------------------------------------
@rule host: ->
# Private properties used to helps construction.
@data = {
@@ -421,6 +427,8 @@ module.exports = ->
}
}
#-------------------------------------------------------------------
# This definition is shared.
VMdef = ->
@data = {
@@ -524,6 +532,8 @@ module.exports = ->
@rule 'VM-controller': VMdef
@rule 'VM-snapshot': VMdef
#-------------------------------------------------------------------
# VM-template starts with the same definition but extends it.
@rule 'VM-template': ->
VMdef.call this
@@ -554,6 +564,8 @@ module.exports = ->
methods.split ','
}
#-------------------------------------------------------------------
@rule SR: ->
@data = {
# Note: not dynamic.
@@ -589,6 +601,8 @@ module.exports = ->
VDIs: -> @genval.VDIs
}
#-------------------------------------------------------------------
@rule PBD: ->
@val = {
attached: -> @genval.currently_attached
@@ -598,6 +612,8 @@ module.exports = ->
SR: -> @genval.SR
}
#-------------------------------------------------------------------
@rule PIF: ->
@val = {
attached: -> @genval.currently_attached
@@ -630,6 +646,8 @@ module.exports = ->
#physical: -> @genval.physical
}
#-------------------------------------------------------------------
@rule VDI: ->
@val = {
name_label: -> @genval.name_label
@@ -665,6 +683,8 @@ module.exports = ->
if VBDs.length is 0 then null else VBDs[0]
}
#-------------------------------------------------------------------
@rule VBD: ->
@val = {
attached: -> @genval.currently_attached
@@ -688,6 +708,8 @@ module.exports = ->
VM: -> @genval.VM
}
#-------------------------------------------------------------------
@rule VIF: ->
@val = {
attached: -> @genval.currently_attached
@@ -704,6 +726,8 @@ module.exports = ->
$VM: -> @genval.VM
}
#-------------------------------------------------------------------
@rule network: ->
@val = {
name_label: -> @genval.name_label
@@ -722,6 +746,8 @@ module.exports = ->
VIFs: -> @genval.VIFs
}
#-------------------------------------------------------------------
@rule message: ->
@val = {
time: -> $toTimestamp @genval.timestamp
@@ -744,6 +770,8 @@ module.exports = ->
body: -> @genval.body
}
#-------------------------------------------------------------------
@rule task: ->
@val = {
name_label: -> @genval.name_label