deb-murano/meta/io.murano/Classes/resources/LinuxInstance.yaml
Stan Lagun 45f002010a 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
2014-06-09 14:54:48 +04:00

23 lines
510 B
YAML

Namespaces:
=: io.murano.resources
std: io.murano
Name: LinuxInstance
Extends: Instance
Methods:
createDefaultInstanceSecurityGroupRules:
Arguments:
- groupName:
Contract: $.string().notNull()
Body:
- $environment: $.find(std:Environment).require()
- $rules:
- ToPort: 22
IpProtocol: tcp
FromPort: 22
External: true
- $environment.securityGroupManager.addGroupIngress(
rules => $rules, groupName => $groupName)