Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Auto-detect started simulator on Linux
Adding utils.isOSX() api to match utils.isWindows()
  • Loading branch information
jsoref authored and bryanhiggins committed Oct 28, 2013
1 parent 6eaf033 commit c6de78e2f6663cd3dc7e31c50d551a546c0a9faf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
@@ -134,6 +134,10 @@ _self = {
return os.type().toLowerCase().indexOf("windows") >= 0;
},

isOSX: function () {
return os.type().toLowerCase().indexOf("darwin") >= 0;
},

isArray: function (obj) {
return obj.constructor.toString().indexOf("Array") !== -1;
},
@@ -175,8 +175,10 @@ _self = {
return DHCP_LEASES_REGEX.test(file);
});
pathVmDhcpLeases = vmDhcpLeasesFiles[0];
} else {
} else if (bb10_utils.isOSX()) {
pathVmDhcpLeases = "/private/var/db/vmware/vmnet-dhcpd-vmnet8.leases";
} else {
pathVmDhcpLeases = "/var/db/vmware/vmnet-dhcpd-vmnet8.leases";
}

fs.readFile(pathVmDhcpLeases, 'utf8', function (err, data) {

0 comments on commit c6de78e

Please sign in to comment.