Merge pull request from resin-io/upgrade_vcs_dependencies

Upgrade Resin VCS dependencies
This commit is contained in:
Juan Cruz Viotti 2015-07-13 07:37:02 -04:00
commit 10478e389a
10 changed files with 12 additions and 14 deletions

View File

@ -129,11 +129,11 @@
if (!confirmed) {
return done();
}
return vcs.initialize(currentDirectory, callback);
return vcs.initialize(currentDirectory).nodeify(callback);
}, function(callback) {
return resin.models.application.get(params.name, callback);
}, function(application, callback) {
return vcs.addRemote(currentDirectory, application.git_repository, callback);
return vcs.associate(currentDirectory, application.git_repository).nodeify(callback);
}
], function(error, remoteUrl) {
if (error != null) {

View File

@ -192,7 +192,7 @@
if (options.application != null) {
return callback(null, options.application);
}
return vcs.getApplicationName(process.cwd(), callback);
return vcs.getApplicationName(process.cwd()).nodeify(callback);
}, function(applicationName, callback) {
options.application = applicationName;
return resin.models.application.has(options.application, callback);

View File

@ -80,8 +80,7 @@
return done(error);
}
console.info("Cloning " + example.display_name + " to " + destination);
vcs.clone(example.repository, destination, done);
return done();
return vcs.clone(example.repository, destination).nodeify(done);
});
}
};

View File

@ -175,13 +175,13 @@ exports.associate =
(confirmed, callback) ->
return done() if not confirmed
vcs.initialize(currentDirectory, callback)
vcs.initialize(currentDirectory).nodeify(callback)
(callback) ->
resin.models.application.get(params.name, callback)
(application, callback) ->
vcs.addRemote(currentDirectory, application.git_repository, callback)
vcs.associate(currentDirectory, application.git_repository).nodeify(callback)
], (error, remoteUrl) ->
return done(error) if error?

View File

@ -272,7 +272,7 @@ exports.init =
(callback) ->
return callback(null, options.application) if options.application?
vcs.getApplicationName(process.cwd(), callback)
vcs.getApplicationName(process.cwd()).nodeify(callback)
(applicationName, callback) ->
options.application = applicationName

View File

@ -91,5 +91,4 @@ exports.clone =
mkdirp destination, (error) ->
return done(error) if error?
console.info("Cloning #{example.display_name} to #{destination}")
vcs.clone(example.repository, destination, done)
return done()
vcs.clone(example.repository, destination).nodeify(done)

View File

@ -1,4 +1,4 @@
.TH "RESIN" "1" "May 2015" "" ""
.TH "RESIN" "1" "July 2015" "" ""
.SH "NAME"
\fBresin\fR \- tab completion for resin
.SH DESCRIPTION

View File

@ -1,4 +1,4 @@
.TH "RESIN\-PLUGINS" "1" "May 2015" "" ""
.TH "RESIN\-PLUGINS" "1" "July 2015" "" ""
.SH "NAME"
\fBresin-plugins\fR \- Creating Resin CLI plugins
.SH DESCRIPTION

View File

@ -1,4 +1,4 @@
.TH "RESIN" "1" "May 2015" "" ""
.TH "RESIN" "1" "July 2015" "" ""
.SH "NAME"
\fBresin\fR \- command line tool to interact with resin\.io
.SH SYNOPSIS

View File

@ -67,7 +67,7 @@
"resin-register-device": "^1.0.1",
"resin-sdk": "^1.7.4",
"resin-settings-client": "^1.2.0",
"resin-vcs": "^1.2.0",
"resin-vcs": "^2.0.0",
"selfupdate": "^1.1.0",
"tmp": "^0.0.25",
"underscore.string": "~2.4.0",