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
/** | |
* This file walks users through | |
* cloning a git repository | |
* and checks their progress, | |
* setting grades and giving feedback | |
* depending on their situation | |
*/ | |
//initialize the lab as 'git_clone_lab' | |
var git_clone_lab = new lab(); |
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
var tuxlab = new lab(); | |
tuxlab.setup = function(env){ | |
return env.init(); | |
} | |
tuxlab.tasks = function(env){ | |
var s1 = function(){ | |
env.start() | |
} | |
var v1 = function(){ |
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
'var tuxlab = new lab();\n\ntuxlab.setup = function(env){\n env.init()\n .then(env.createVm({dockerodeCreateOptions: {name: "jonathan"}}))\n .then(env.createVm({dockerodeCreateOptions: {name: "michael"}}))\n .then(env.shell("labVm","mkdir derek"))\n .then(function(sOut){ console.log("succ: "+sOut); },\n function(sOut,sErr,sDock){ throw sOut+sErr+sDock; })\n .then(env.removeVm("michael"));\n}\ntuxlab.tasks = function(env){\n var s1 = function(){\n env.start()\n .then(env.createVm({dockerodeCreateOptions: {name: "derek"}}))\n .then(env.shell("labVm","cd ~./home/usr/derek"))\n .then(function(sOut){ console.log("succ: "+sOut); },\n function(sOut,sErr,sDock){ throw sOut+sErr+sDock; });\n }\n var v1 = function(){\n env.shell("labVm","pwd")\n .then(function(sOut){ if(sOut === "/usr/home/derek") return true; else return false; });\n }\n var s2 = function(){}\n var v2 = function(){}\n var s3 = function(){}\n var v3 = function(){}\n var s4 = function(){ |
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
'prepareLab': function(user : string, labId : string,callback : any){ | |
var session = new LabSession(); | |
var uId = Meteor.userId(); | |
var sessionAsync = Meteor.wrapAsync(session.init); | |
try{ | |
var result = sessionAsync({user: uId, labId: labId}); | |
return result; | |
} | |
catch(e){ | |
TuxLog.log("debug",e); |
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
fatal: [meteor -> localhost]: FAILED! => {"changed": true, "cmd": "~/.tuxlab/certbot/letsencrypt-auto certonly -d cmu.tuxlab.org --email support@tuxlab.org --standalone --cert-path ~/.tuxlab/", "delta": "0:00:34.661211", "end": "2016-07-15 15:36:40.526386", "failed": true, "rc": 1, "start": "2016-07-15 15:36:05.865175", "stderr": "Failed authorization procedure. cmu.tuxlab.org (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for cmu.tuxlab.org", "stdout": "Requesting root privileges to run certbot...\n /home/cem/.local/share/letsencrypt/bin/letsencrypt certonly -d cmu.tuxlab.org --email support@tuxlab.org --standalone --cert-path /home/cem/.tuxlab/\n\u001b[?1049h\u001b[1;24r\u001b(B\u001b[m\u001b[4l\u001b[?7h\u001b[?1h\u001b=\u001b[?1000h\u001b[39;49m\u001b[?1h\u001b=\u001b[39;49m\u001b(B\u001b[m\u001b[H\u001b[2J\u001b[23d\u001b(B\u001b[0;1m\u001b[36m\u001b[44m\u001b[J\u001b[H\u001b[K\n \u001b(0\u001b[0;1m\u001b |
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
// Meteor Imports | |
import { Meteor } from 'meteor/meteor'; | |
import { Mongo } from 'meteor/mongo'; | |
import 'reflect-metadata'; | |
import 'zone.js/dist/zone'; | |
// Angular Imports | |
import { Component, ViewEncapsulation, provide } from '@angular/core'; | |
import { bootstrap } from 'angular2-meteor-auto-bootstrap'; | |
// Angular Material Imports |
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
<div class = "cl"> {{img}} </div> |