Comparing version 0.0.6 to 0.0.7
@@ -133,2 +133,36 @@ var soap = require('soap'), | ||
Ascio.prototype.updateNS = function(domain, nss, cb) { | ||
var self = this; | ||
var order = { | ||
'Type': 'Nameserver_Update', | ||
'Domain': { | ||
'DomainName': domain, | ||
'NameServers': {} | ||
} | ||
}; | ||
for (var i = 0; i < nss.length; i++) { | ||
order.Domain.NameServers['NameServer' + (i+1)] = {}; | ||
order.Domain.NameServers['NameServer' + (i+1)]['HostName'] = nss[i]; | ||
} | ||
var opts = { | ||
'sessionId': self.sessionid, | ||
'order': order, | ||
}; | ||
debug(require('util').inspect(opts)); | ||
//TODO: result is lost, find why. | ||
this.client.CreateOrder(opts, function(err, result) { | ||
if(err) return cb(err, undefined); | ||
debug(require('util').inspect(result)); | ||
return cb(err, 'changed'); | ||
}); | ||
}; | ||
module.exports = Ascio; |
{ | ||
"name": "ascio", | ||
"description": "ASCIO AWS node implementation", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Pedro Dias <petermdias@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
node-ascio | ||
========== | ||
WIP | ||
WIP... very WIP... | ||
DEBUG=network && ASCIO_USERNAME=username && ASCIO_PASSWORD=password && node test/lab.js | ||
DEBUG=network && ASCIO_USERNAME=username && ASCIO_PASSWORD=password && node test/lab.js |
@@ -12,8 +12,16 @@ var Ascio = require('../lib/ascio'); | ||
*/ | ||
ascio.domainInfo('algarve.bike', function(err, msg) { | ||
/* | ||
ascio.domainInfo('adsfafd.bike', function(err, msg) { | ||
if(err) throw err; | ||
console.log(require('util').inspect(msg, { showHidden: true, depth: null })); | ||
}); | ||
*/ | ||
/* | ||
ascio.updateNS('rttrytrs.eu', ['ns5.mydnspt.net', 'ns6.mydnspt.net'], function(err, msg) { | ||
if(err) throw err; | ||
console.log(require('util').inspect(msg, { showHidden: true, depth: null })); | ||
}); | ||
*/ | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92218
152
7