 
       @composer.get(url, (err, req, res, obj) =>
         raml_file_content = res['body']
-        console.log raml_file_content
         @composer.close()
         fs.writeFile(raml_path, raml_file_content, (err,data) ->
           console.log 'raml saved'

          console.log "resource #{resource_name} defined"
          scaffold = "you can scaffold code skeleton by running 'yo devroids:dolan-res #{resource_name} #{params.join(' ')} defined'"
          console.log scaffold
        @composer.close()
      )


        @composer.close()
      )

    if com=='remove_provider'
      id = params.shift()

      @composer.del("/app/#{@getAppId()}/service_providers/#{id}.json", data, (err, req, res, obj) =>
        console.log 'provider removed'
        @composer.close()
      )

    if com=='resources'
      # does not work?
      config = getConfig()
      provider = config.resourceProviderUid

      url = "app/#{@getAppId()}/service_providers/#{provider}/resources.json"

      console.log url

      @composer.get(url, (err, req, res, obj) =>
        console.log JSON.stringify(obj)
        @composer.close()
      )

  ## old ->

  test3: (params) =>
    @createBucketWithCredentials(params[0])
