Browse Source

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
changes/45/97945/2
Stan Lagun 8 years ago
parent
commit
45f002010a
  1. 2
      meta/io.murano/Classes/Application.yaml
  2. 2
      meta/io.murano/Classes/Environment.yaml
  3. 2
      meta/io.murano/Classes/Object.yaml
  4. 2
      meta/io.murano/Classes/SecurityGroupManager.yaml
  5. 2
      meta/io.murano/Classes/resources/Instance.yaml
  6. 2
      meta/io.murano/Classes/resources/LinuxInstance.yaml
  7. 2
      meta/io.murano/Classes/resources/LinuxMuranoInstance.yaml
  8. 2
      meta/io.murano/Classes/resources/LinuxUDInstance.yaml
  9. 2
      meta/io.murano/Classes/resources/Network.yaml
  10. 2
      meta/io.murano/Classes/resources/NeutronNetwork.yaml
  11. 2
      meta/io.murano/Classes/resources/WindowsInstance.yaml
  12. 3
      murano/dsl/class_loader.py

2
meta/io.murano/Classes/Application.yaml

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

2
meta/io.murano/Classes/Environment.yaml

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

2
meta/io.murano/Classes/Object.yaml

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

2
meta/io.murano/Classes/SecurityGroupManager.yaml

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

2
meta/io.murano/Classes/resources/Instance.yaml

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

2
meta/io.murano/Classes/resources/LinuxInstance.yaml

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

2
meta/io.murano/Classes/resources/LinuxMuranoInstance.yaml

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

2
meta/io.murano/Classes/resources/LinuxUDInstance.yaml

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

2
meta/io.murano/Classes/resources/Network.yaml

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

2
meta/io.murano/Classes/resources/NeutronNetwork.yaml

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

2
meta/io.murano/Classes/resources/WindowsInstance.yaml

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

3
murano/dsl/class_loader.py

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

Loading…
Cancel
Save