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:
Stan Lagun
2014-06-05 01:39:00 +04:00
parent a47a96bd46
commit 45f002010a
12 changed files with 13 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ Namespaces:
Name: Application Name: Application
Workflow: Methods:
reportDeployed: reportDeployed:
Arguments: Arguments:
- title: - title:

View File

@@ -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)

View File

@@ -2,5 +2,5 @@ Namespaces:
=: io.murano =: io.murano
Name: Object Name: Object
Workflow: Methods:
initialize: initialize:

View File

@@ -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:

View File

@@ -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()

View File

@@ -6,7 +6,7 @@ Name: LinuxInstance
Extends: Instance Extends: Instance
Workflow: Methods:
createDefaultInstanceSecurityGroupRules: createDefaultInstanceSecurityGroupRules:
Arguments: Arguments:
- groupName: - groupName:

View File

@@ -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()

View File

@@ -13,7 +13,7 @@ Properties:
Usage: InOut Usage: InOut
Default: null Default: null
Workflow: Methods:
prepareUserData: prepareUserData:
Body: Body:
- Return: $.customUserData - Return: $.customUserData

View File

@@ -3,7 +3,7 @@ Namespaces:
Name: Network Name: Network
Workflow: Methods:
getNetworkReference: getNetworkReference:
getSubnetReference: getSubnetReference:
getExternalNetId: getExternalNetId:

View File

@@ -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()

View File

@@ -6,7 +6,7 @@ Name: WindowsInstance
Extends: Instance Extends: Instance
Workflow: Methods:
createDefaultInstanceSecurityGroupRules: createDefaultInstanceSecurityGroupRules:
Arguments: Arguments:
- groupName: - groupName:

View File

@@ -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