Files
stf-DeviceFarmer/res/app/control-panes/shell/shell-controller.js
Gunther Brunner 7e4f9bd0cd - Shell module created.
- Device table now almost works.
2014-03-19 19:36:58 +09:00

17 lines
381 B
JavaScript

module.exports = function ShellCtrl($scope) {
$scope.results = []
$scope.run = function(command) {
var cmd = $scope.control.shell(command)
return cmd.promise
.progressed(function(results) {
$scope.results = results
$scope.$digest()
})
.then(function(results) {
$scope.results = results
$scope.$digest()
})
}
}