Sha256: c2768228808fb6b7f73594bb5eb4ad8db4c23593323e35ed9e6d4c3864856fb2
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
(function(conjur, async, errback) { 'use strict'; var Generic = this.Generic; var Host = this.Host = function(args) { if (!(this instanceof Host)) { return new Host(args); } var superArguments = Array.prototype.slice.call(arguments); superArguments.unshift('host'); Generic.apply(this, superArguments); return undefined; }; Host.prototype = Object.create(Generic.prototype); Host.prototype.constructor = Host; Host.prototype.fetch = function(callback, custom_errback) { var self = this, id = this.id; if (typeof(custom_errback) === 'undefined') { custom_errback = errback; // reset to default } async.parallel([ this.attributes.bind(this), this.ownedResources.bind(this), this.allRoles.bind(this), this.resource.bind(this) ], function(err, results) { if (err) { return custom_errback(err.status); } callback({ host: results[0], owned: results[1], roles: results[2], annotations: results[3].annotations }); return undefined; }); }; }).bind(conjur.models.Record) ( conjur, async, conjur.utils.errback );
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-ui-1.3.2 | public/js/models/hostRecord.js |
conjur-asset-ui-1.3.0 | public/js/models/hostRecord.js |