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
Workflow:
Methods:
reportDeployed:
Arguments:
- title:

View File

@@ -38,7 +38,7 @@ Properties:
Contract: $.class(sys:StatusReporter)
Usage: Runtime
Workflow:
Methods:
initialize:
Body:
- $this.agentListener: new(sys:AgentListener, name => $.name)

View File

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

View File

@@ -13,7 +13,7 @@ Properties:
Usage: Runtime
Default: format('MuranoSecurityGroup-{0}', $.environment.name)
Workflow:
Methods:
addGroupIngress:
Arguments:
- rules:

View File

@@ -45,7 +45,7 @@ Properties:
Contract: $.string()
Default: null
Workflow:
Methods:
initialize:
Body:
- $.environment: $.find(std:Environment).require()

View File

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

View File

@@ -8,7 +8,7 @@ Name: LinuxMuranoInstance
Extends:
- LinuxInstance
Workflow:
Methods:
prepareUserData:
Body:
- $environment: $.find(std:Environment).require()

View File

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

View File

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

View File

@@ -35,7 +35,7 @@ Properties:
Contract: $.bool().notNull()
Default: true
Workflow:
Methods:
initialize:
Body:
- $.environment: $.find(std:Environment).require()

View File

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

View File

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