mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-27 09:12:29 +00:00
Merge pull request #94 from resin-io/upgrade_vcs_dependencies
Upgrade Resin VCS dependencies
This commit is contained in:
commit
10478e389a
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -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?
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH "RESIN" "1" "May 2015" "" ""
|
||||
.TH "RESIN" "1" "July 2015" "" ""
|
||||
.SH "NAME"
|
||||
\fBresin\fR \- tab completion for resin
|
||||
.SH DESCRIPTION
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user