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
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
reportDeployed:
|
||||
Arguments:
|
||||
- title:
|
||||
|
@@ -38,7 +38,7 @@ Properties:
|
||||
Contract: $.class(sys:StatusReporter)
|
||||
Usage: Runtime
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
initialize:
|
||||
Body:
|
||||
- $this.agentListener: new(sys:AgentListener, name => $.name)
|
||||
|
@@ -2,5 +2,5 @@ Namespaces:
|
||||
=: io.murano
|
||||
Name: Object
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
initialize:
|
||||
|
@@ -13,7 +13,7 @@ Properties:
|
||||
Usage: Runtime
|
||||
Default: format('MuranoSecurityGroup-{0}', $.environment.name)
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
addGroupIngress:
|
||||
Arguments:
|
||||
- rules:
|
||||
|
@@ -45,7 +45,7 @@ Properties:
|
||||
Contract: $.string()
|
||||
Default: null
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
initialize:
|
||||
Body:
|
||||
- $.environment: $.find(std:Environment).require()
|
||||
|
@@ -6,7 +6,7 @@ Name: LinuxInstance
|
||||
|
||||
Extends: Instance
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
createDefaultInstanceSecurityGroupRules:
|
||||
Arguments:
|
||||
- groupName:
|
||||
|
@@ -8,7 +8,7 @@ Name: LinuxMuranoInstance
|
||||
Extends:
|
||||
- LinuxInstance
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
prepareUserData:
|
||||
Body:
|
||||
- $environment: $.find(std:Environment).require()
|
||||
|
@@ -13,7 +13,7 @@ Properties:
|
||||
Usage: InOut
|
||||
Default: null
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
prepareUserData:
|
||||
Body:
|
||||
- Return: $.customUserData
|
||||
|
@@ -3,7 +3,7 @@ Namespaces:
|
||||
|
||||
Name: Network
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
getNetworkReference:
|
||||
getSubnetReference:
|
||||
getExternalNetId:
|
||||
|
@@ -35,7 +35,7 @@ Properties:
|
||||
Contract: $.bool().notNull()
|
||||
Default: true
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
initialize:
|
||||
Body:
|
||||
- $.environment: $.find(std:Environment).require()
|
||||
|
@@ -6,7 +6,7 @@ Name: WindowsInstance
|
||||
|
||||
Extends: Instance
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
createDefaultInstanceSecurityGroupRules:
|
||||
Arguments:
|
||||
- groupName:
|
||||
|
@@ -75,7 +75,8 @@ class MuranoClassLoader(object):
|
||||
spec = typespec.PropertySpec(property_spec, ns_resolver)
|
||||
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)
|
||||
|
||||
self._loaded_types[name] = type_obj
|
||||
|
Reference in New Issue
Block a user