Renames 'Workflow' to 'Methods'
Renames name of the section containing class methods. New name is more OOP and doesn't cause confusion with Mistral. Old name is still works for backward compatibility Change-Id: I7f6a4af31983f85283e2c91d0a88b9b42367affa Implements: blueprint rename-workflow-to-methods
This commit is contained in:
@@ -3,7 +3,7 @@ Namespaces:
|
|||||||
|
|
||||||
Name: Application
|
Name: Application
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
reportDeployed:
|
reportDeployed:
|
||||||
Arguments:
|
Arguments:
|
||||||
- title:
|
- title:
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Properties:
|
|||||||
Contract: $.class(sys:StatusReporter)
|
Contract: $.class(sys:StatusReporter)
|
||||||
Usage: Runtime
|
Usage: Runtime
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
initialize:
|
initialize:
|
||||||
Body:
|
Body:
|
||||||
- $this.agentListener: new(sys:AgentListener, name => $.name)
|
- $this.agentListener: new(sys:AgentListener, name => $.name)
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ Namespaces:
|
|||||||
=: io.murano
|
=: io.murano
|
||||||
Name: Object
|
Name: Object
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
initialize:
|
initialize:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Properties:
|
|||||||
Usage: Runtime
|
Usage: Runtime
|
||||||
Default: format('MuranoSecurityGroup-{0}', $.environment.name)
|
Default: format('MuranoSecurityGroup-{0}', $.environment.name)
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
addGroupIngress:
|
addGroupIngress:
|
||||||
Arguments:
|
Arguments:
|
||||||
- rules:
|
- rules:
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Properties:
|
|||||||
Contract: $.string()
|
Contract: $.string()
|
||||||
Default: null
|
Default: null
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
initialize:
|
initialize:
|
||||||
Body:
|
Body:
|
||||||
- $.environment: $.find(std:Environment).require()
|
- $.environment: $.find(std:Environment).require()
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Name: LinuxInstance
|
|||||||
|
|
||||||
Extends: Instance
|
Extends: Instance
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
createDefaultInstanceSecurityGroupRules:
|
createDefaultInstanceSecurityGroupRules:
|
||||||
Arguments:
|
Arguments:
|
||||||
- groupName:
|
- groupName:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Name: LinuxMuranoInstance
|
|||||||
Extends:
|
Extends:
|
||||||
- LinuxInstance
|
- LinuxInstance
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
prepareUserData:
|
prepareUserData:
|
||||||
Body:
|
Body:
|
||||||
- $environment: $.find(std:Environment).require()
|
- $environment: $.find(std:Environment).require()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Properties:
|
|||||||
Usage: InOut
|
Usage: InOut
|
||||||
Default: null
|
Default: null
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
prepareUserData:
|
prepareUserData:
|
||||||
Body:
|
Body:
|
||||||
- Return: $.customUserData
|
- Return: $.customUserData
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ Namespaces:
|
|||||||
|
|
||||||
Name: Network
|
Name: Network
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
getNetworkReference:
|
getNetworkReference:
|
||||||
getSubnetReference:
|
getSubnetReference:
|
||||||
getExternalNetId:
|
getExternalNetId:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Properties:
|
|||||||
Contract: $.bool().notNull()
|
Contract: $.bool().notNull()
|
||||||
Default: true
|
Default: true
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
initialize:
|
initialize:
|
||||||
Body:
|
Body:
|
||||||
- $.environment: $.find(std:Environment).require()
|
- $.environment: $.find(std:Environment).require()
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Name: WindowsInstance
|
|||||||
|
|
||||||
Extends: Instance
|
Extends: Instance
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
createDefaultInstanceSecurityGroupRules:
|
createDefaultInstanceSecurityGroupRules:
|
||||||
Arguments:
|
Arguments:
|
||||||
- groupName:
|
- groupName:
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ class MuranoClassLoader(object):
|
|||||||
spec = typespec.PropertySpec(property_spec, ns_resolver)
|
spec = typespec.PropertySpec(property_spec, ns_resolver)
|
||||||
type_obj.add_property(property_name, spec)
|
type_obj.add_property(property_name, spec)
|
||||||
|
|
||||||
for method_name, payload in data.get('Workflow', {}).iteritems():
|
methods = data.get('Methods') or data.get('Workflow') or {}
|
||||||
|
for method_name, payload in methods.iteritems():
|
||||||
type_obj.add_method(method_name, payload)
|
type_obj.add_method(method_name, payload)
|
||||||
|
|
||||||
self._loaded_types[name] = type_obj
|
self._loaded_types[name] = type_obj
|
||||||
|
|||||||
Reference in New Issue
Block a user