lib/heroku.js
function(err, privkey, pubkey) {
      if (err) throw err;
      this.pubkey = pubkey;
      this.privkey = privkey;
      this.user_host_field = pubkey.split(' ')[2].trim();
      console.log("Adding Heroku SSH keypair via API");
      add_ssh_key(api_key, pubkey, this);
    }
function(err, privkey, pubkey) {
      if (err) throw err;
      this.pubkey = pubkey;
      this.privkey = privkey;
      this.user_host_field = pubkey.split(' ')[2].trim();
      console.log("Adding Heroku SSH keypair via API");
      add_ssh_key(api_key, pubkey, this);
    }
function ( err , privkey , pubkey ) { if ( err ) throw err ; this . pubkey = pubkey ; this . privkey = privkey ; this . user_host_field = pubkey . split ( ' ' ) [ 2 ] . trim ( ) ; console . log ( "Adding Heroku SSH keypair via API" ) ; add_ssh_key ( api_key , pubkey , this ) ; }
Add keypair to Heroku account
Add keypair to Heroku account