/**
 * Created by tusharmathur on 5/15/15.
 */
'use strict'
const download = require('./download').download
const create = require('./create').create
const ob = require('./observables')

class Download {
  constructor (options) {
    this.options = options
    this.options.mtdPath = this.options.path + '.mtd'
  }

  start () {
    return create(ob, this.options)
      .toPromise()
      .then(() => download(ob, this.options).toPromise())
  }

  stop () {
  }
}
module.exports = Download

@@ -369,31 +369,15 @@
    .
-toPromise()%0A      .then
+flatMap
 (() 
@@ -405,16 +405,24 @@
 options)
+)%0A      
 .toPromi
@@ -425,17 +425,16 @@
 romise()
-)
 %0A  %7D%0A%0A  

use toPromise at end