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
//http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery | |
jQuery.fn.serializeObject = function () { | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function () { | |
if (o[this.name] !== undefined) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} | |
o[this.name].push(this.value || ''); |
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
{ | |
"name": "dev_artifact", | |
"description": "Install from artifacts", | |
"json_class": "Chef::Role", | |
"default_attributes": { | |
}, | |
"override_attributes": { | |
"environment": "production", | |
"artifact" : { | |
"url": "http://artifact.feedhenry.local" |
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
#!/bin/bash | |
command -v node >/dev/null 2>&1 || { | |
echo -e "\033[1;31mNodejs not installed?\033[0m"; | |
curl --silent --location https://rpm.nodesource.com/setup_4.x | sudo bash - | |
sudo yum install -y nodejs | |
} | |
export CORE_PROJECT_NAME=core | |
oc login -u test -p test |