Yaml syntax cleanup

* remove 'error' like:
- no new line character at the end of file
- trailing spaces

Change-Id: I981f5353a5bd5bfb1546946b240a85905272887e
This commit is contained in:
alexz 2016-07-26 15:12:57 +03:00 committed by Aleksey Zvyagintsev
parent 001f04c3a2
commit 719a47fa86
12 changed files with 27 additions and 22 deletions

View File

@ -86,3 +86,4 @@ Methods:
- $key: $pair[0].trim()
- $result[$key]: $pair[1].trim()
- Return: $result

View File

@ -14,8 +14,10 @@ Format: 1.3
Type: Application
FullName: com.example.docker.DockerHTTPd
Name: Docker HTTPd
Description: |
The Apache HTTP Server, colloquially called Apache, is a Web server application notable for playing a key role in the initial growth of the World Wide Web.
Description: >-
The Apache HTTP Server, colloquially called Apache, is a Web server
application notable for playing a key role in the initial growth
of the World Wide Web.
Author: 'Mirantis, Inc'
Tags: [docker, application, httpd]
Classes:

View File

@ -20,7 +20,6 @@ Application:
publish: $.appConfiguration.publish
password: $.appConfiguration.password
Forms:
- appConfiguration:
fields:

View File

@ -14,8 +14,11 @@ Format: 1.3
Type: Application
FullName: com.example.docker.DockerNginx
Name: Docker Nginx
Description: |
Nginx (pronounced “engine-x”) is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server).
Description: >-
Nginx (pronounced "engine-x") is an open source reverse
proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP
protocols, as well as a load balancer, HTTP cache,
and a web server (origin server).
Author: 'Mirantis, Inc'
Tags: [docker, application, Nginx]
Classes:

View File

@ -14,8 +14,12 @@ Format: 1.3
Type: Application
FullName: com.example.docker.DockerTomcat
Name: Docker Tomcat
Description: |
Apache Tomcat (or simply Tomcat) is an open source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Oracle, and provides a “pure Java” HTTP web server environment for Java code to run in.
Description: >-
Apache Tomcat (or simply Tomcat) is an open source web server and servlet
container developed by the Apache Software Foundation (ASF).
Tomcat implements the Java Servlet and the JavaServer Pages (JSP)
specifications from Oracle, and provides a "pure Java" HTTP web server
environment for Java code to run in.
Author: 'Mirantis, Inc'
Tags: [docker, application, Tomcat]
Classes:
@ -24,3 +28,4 @@ Require:
com.mirantis.docker.DockerStandaloneHost:
com.mirantis.docker.kubernetes.KubernetesPod:
com.mirantis.docker.Interfaces:

View File

@ -29,3 +29,4 @@ Methods:
Return:
type: $.getType()
parameters: $.getParameters()

View File

@ -61,7 +61,6 @@ Methods:
Body:
- $._environment: $.find(std:Environment).require()
deploy:
Body:
- If: not $.getAttr(deployed, false)

View File

@ -38,7 +38,6 @@ Methods:
- $.deployPod()
- $.setAttr(deployed, true)
deployPod:
Body:
- $resources: new(sys:Resources)

View File

@ -38,11 +38,9 @@ Methods:
- $.deployReplicationController()
- $.setAttr(deployed, true)
deployReplicationController:
Body:
- $resources: new(sys:Resources)
- $template: $resources.yaml('UpdateReplicationController.template').bind(dict(
controllerDefinition => $.replicationControllerDefinition,
isNew => true

View File

@ -38,11 +38,9 @@ Methods:
- $.deployService()
- $.setAttr(deployed, true)
deployService:
Body:
- $resources: new(sys:Resources)
- $template: $resources.yaml('UpdateService.template').bind(dict(
serviceDefinition => $.serviceDefinition,
isNew => true