Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: flatiron/cradle
base: 87d463b581
...
head fork: flatiron/cradle
compare: 6ad6a5304a
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/cradle.js
View
8 lib/cradle.js
@@ -65,6 +65,14 @@ cradle.Connection = function Connection(/* variable args */) {
}
});
+ if(typeof auth == "string") {
+ // probaby via a url.parse()
+ var userpass = auth.split(":");
+ auth = {};
+ auth.username = userpass[0];
+ auth.password = userpass[1] || null;
+ }
+
this.host = host || cradle.host;
this.port = port || cradle.port;
this.auth = auth || cradle.auth;

No commit comments for this range

Something went wrong with that request. Please try again.