import { FabricEnvironment } from 'ibm-blockchain-platform-common' ; import { CommandUtil } from '../../util/CommandUtil' ; export class LocalEnvironment extends FabricEnvironment { public async teardown ( ) { try { if ( process . platform === 'win32' ) { await CommandUtil . sendCommandWithOutput ( 'cmd' , [ '/c' , `teardown.cmd` ] , this . path ) ; } else { await CommandUtil . sendCommandWithOutput ( '/bin/sh' , [ `teardown.sh` ] , this . path ) ; } } catch ( err ) { } } }