Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created May 2, 2013 12:56
Show Gist options
  • Select an option

  • Save ploubser/5502000 to your computer and use it in GitHub Desktop.

Select an option

Save ploubser/5502000 to your computer and use it in GitHub Desktop.
(function() {
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
PuppetEnterpriseConsole.PuppetdController = (function(_super) {
__extends(PuppetdController, _super);
function PuppetdController() {
return PuppetdController.__super__.constructor.apply(this, arguments);
}
PuppetdController.prototype.routingKey = 'puppet';
PuppetdController.beforeFilter(function() {
return PuppetEnterpriseConsole.set('active', 'puppet');
});
PuppetdController.prototype.show = function() {
#this.set('agent', PuppetEnterpriseConsole.Agent.agent('puppetd'));
this.set('agent', PuppetEnterpriseConsole.Agent.agent('puppet'));
this.unset('results');
return this.render({
source: 'orchestration/show',
controller: 'orchestration',
action: 'show',
#id: 'puppetd'
id: 'puppet'
});
};
return PuppetdController;
})(PuppetEnterpriseConsole.OrchestrationController);
}).call(this);
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment