This file contains 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
/** | |
* Created by austin on 02/04/2017. | |
*/ | |
'use strict'; | |
const express = require('express'); | |
const router = express.Router(); | |
const fields = require('../fixtures/fields.json'); | |
const exec = require('child_process').exec; |
This file contains 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
<!-- Title --> | |
<p class="wfm-step-row">Please register details</p> | |
<!-- Two field form --> | |
<div class="wfm-step-row" class="form-group" ng-form name="stepForm"> | |
<md-input-container class="md-block" flex-gt-sm> | |
<label>E.g. First Name</label> | |
<!-- Customise change ng-model ctrl.model to own variable --> | |
<input type="text" id="title" name="title" ng-model="ctrl.model.firstName" required> |
This file contains 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
<!-- Title--> | |
<md-subheader>survey</md-subheader> | |
<!-- Two field report --> | |
<md-list> | |
<md-list-item class="md-2-line"> | |
<div class="md-list-item-text"> | |
<!-- Customise change model. to own variable --> | |
<h3>{{model.firstName}} </h3> | |
<p>First name </p> |
This file contains 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
'use strict'; | |
var angular = require('angular'); | |
window.async = require('async'); | |
window._ = require('underscore'); | |
var logger = require('@raincatcher/logger'); | |
var accidentStep = require('@raincatcher-examples/step-accident'); | |
var vehicleInspectionStep = require('@raincatcher-examples/step-vehicle-inspection'); | |
var signatureStep = require('@raincatcher/step-signature'); |
This file contains 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
'use strict'; | |
function initModule() { | |
var moduleName = 'wfm.step.survey'; | |
var ngModule = angular.module(moduleName, []); | |
require('../../dist'); | |
ngModule.directive('survey', function($templateCache) { | |
return { |
This file contains 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
- hosts: localhost | |
tasks: | |
- name: Test that my hello_world module works | |
hello_world: | |
register: result | |
- debug: var=result |
This file contains 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
#!/usr/bin/python | |
from ansible.module_utils.basic import * | |
def main(): | |
module = AnsibleModule(argument_spec={}) | |
theReturnValue = {"hello": "world"} | |
module.exit_json(changed=False, meta=theReturnValue) | |
if __name__ == '__main__': |
This file contains 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
- hosts: localhost | |
tasks: | |
- name: Test that my change_version module works | |
version_change: | |
version_name: "Before" | |
version_no: 1.1.1 | |
unchanged_value: "This will pass through" | |
register: result |
This file contains 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
#!/usr/bin/python | |
from ansible.module_utils.basic import * | |
def main(): | |
fields = { | |
"version_no": {"default": True, "type": "str"}, | |
"version_name": {"default": True, "type": "str"}, | |
"unchanged_value": {"default": True, "type": "str"} |
This file contains 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
#!/usr/bin/env node | |
const colors = require('colors/safe'); | |
const readlineSync = require('readline-sync'); | |
const execsync = require('child_process').execSync; | |
const fs = require('fs'); | |
console.log('This is like Echo in the command prompt'); | |
// npm install colors/safe --save |
OlderNewer