Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a self-update command #37

Closed
dgil opened this issue May 13, 2016 · 0 comments
Closed

Add a self-update command #37

dgil opened this issue May 13, 2016 · 0 comments
Milestone

Comments

@dgil
Copy link
Contributor

dgil commented May 13, 2016

Currently we have no way to update captain using captain itself so if we want to have the last version we have to check Github and install the last version manually.

I'd like to propose a new command captain self-update that download the last version (if any) and update the binary in the computer.

In order to have captain self-update we should:

  • store the binaries in $HOMEDIR/.captain/binaries/captain-{captain version}
  • have a symlink $HOMEDIR/.captain/bin/captain that points to the last binary (this dir should be in the users's $PATH)
  • store in github the last version of captain. E.g. https://raw.githubusercontent.com/harbur/captain/master/VERSION
How should it work?
  1. User run captain self-update
  2. captain check the last version in https://raw.githubusercontent.com/harbur/captain/master/VERSION
  3. (if new version available) download the last version and store it in $HOMEDIR/.captain/binaries/captain-{version}
  4. Update captain symlink in $HOMEDIR/.captain/bin/

What do you think? Have I missed something?

@dgil dgil added this to the 1.0.0 milestone May 13, 2016
This was referenced May 20, 2016
@dgil dgil closed this as completed in #49 May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant