This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AJAX call used in the views, "/nodeType/{create,edit}.gsp" | |
*/ | |
def getNodeAttributes = { | |
def response = [] | |
def attrs = [] | |
if(params.templateid){ | |
def attributes = [] | |
Attribute.list().each() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## XML Format | |
<yana> | |
<result (success|error="true") apiversion="X">? | |
( | |
<error>? | |
<message>string</message> | |
</error> | |
| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dtolabs | |
import groovy.xml.MarkupBuilder | |
import com.dtolabs.groovy.util.BuilderUtil | |
/** | |
* Provides a model export service that takes a project | |
* and dumps it out as XML-based model content. | |
* | |
* Export format must conform to the /import/yana.xsd file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<yana> | |
<attributes> | |
<attribute name="controller" filter="String"/> | |
<!-- Package --> | |
<attribute name="arch" filter="String"/> | |
<attribute name="base" filter="String"/> | |
<attribute name="buildtime" filter="String"/> | |
<attribute name="filename" filter="String"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Sample XML to establish the minimum set of node types to support default usage of the --> | |
<!-- Rundeck rundeck-yana2-nodes-plugin (https://github.com/sharadr/rundeck-yana2-nodes-plugin) --> | |
<yana> | |
<attributes> | |
<attribute name="hostname" filter="String"/> | |
<attribute name="osArch" filter="String"/> | |
<attribute name="osFamily" filter="String"/> | |
<attribute name="osName" filter="String"/> | |
<attribute name="osVersion" filter="String"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dtolabs | |
import grails.test.mixin.* | |
import grails.test.GrailsUnitTestCase | |
import org.springframework.core.io.Resource | |
import org.springframework.core.io.ClassPathResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ $GRAILS_HOME/bin/grails test-app unit: ImportService | |
| Running 2 unit tests... 2 of 2 | |
| Failure: testParse(com.dtolabs.ImportServiceTests) | |
| grails.validation.ValidationException: Validation error occured during call to save(): | |
- Field error in object 'com.dtolabs.Attribute' on field 'filter': rejected value [null]; codes [com.dtolabs.Attribute.filter.nullable.error.com.dtolabs.Attribute.filter,com.dtolabs.Attribute.filter.nullable.error.filter,com.dtolabs.Attribute.filter.nullable.error.com.dtolabs.Filter,com.dtolabs.Attribute.filter.nullable.error,attribute.filter.nullable.error.com.dtolabs.Attribute.filter,attribute.filter.nullable.error.filter,attribute.filter.nullable.error.com.dtolabs.Filter,attribute.filter.nullable.error,com.dtolabs.Attribute.filter.nullable.com.dtolabs.Attribute.filter,com.dtolabs.Attribute.filter.nullable.filter,com.dtolabs.Attribute.filter.nullable.com.dtolabs.Filter,com.dtolabs.Attribute.filter.nullable,attribute.filter.nullable.com.dtolabs.Attribute.filter,attribute.filter.nu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dtolabs | |
import grails.test.mixin.* | |
import grails.test.GrailsUnitTestCase | |
import org.springframework.core.io.Resource | |
import org.springframework.core.io.ClassPathResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dtolabs | |
import grails.test.mixin.* | |
import grails.test.GrailsUnitTestCase | |
import org.springframework.core.io.Resource | |
import org.springframework.core.io.ClassPathResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<yana> | |
<attributes> | |
<attribute name="controller" filter="String"/> | |
<!-- Package --> | |
<attribute name="arch" filter="String"/> | |
<attribute name="base" filter="String"/> | |
<attribute name="buildtime" filter="String"/> | |
<attribute name="filename" filter="String"/> |