Plugins: os
os plugin
Plugin to check Operating System where pisco is running
1. isMac() addon
this.isMac()
is a syncronous method that returns a true
when the operating system is a Mac OS.
Example:
run: function(resolve, reject) {
this.logger.info('mac?', this.isMac());
return true;
}
2. isWin() addon
this.isWin()
is a syncronous method that returns a true
when the operating system is a Windows OS.
Example:
run: function(resolve, reject) {
this.logger.info('windows?', this.isWindow());
return true;
}