import { Task , CancellablePromise } from '@theintern/common' ; import Tunnel , { TunnelProperties } from './Tunnel' ; /**
 * A no-op tunnel.
 */ export default class NullTunnel extends Tunnel { constructor ( options ? ) { super ( Object . assign ( { auth : '' } , options || { } ) ) ; } get isDownloaded ( ) { return true ; } download ( ) { return Task . resolve ( ) ; } start ( ) { this . _state = 'running' ; return Task . resolve ( ) ; } stop ( ) { this . _state = 'stopped' ; return Promise . resolve ( 0 ) ; } sendJobState ( ) { return Task . resolve ( ) ; } }