File: vcs.coffee
Defined in: | lib/resin/vcs |
Variables Summary
- exports.initProjectWithApplication =
-
git
TODO: This function should be better testedNote: The directory should already be a git repo (maybe we should take care of git init as well here if necessary?)Initialize an application project
- Add the corresponding git remote.
resin.models.application.get 91, (error, application) -> throw error if error? resin.vcs.initProjectWithApplication application, 'my/new/project', (error) -> throw error if error?
- exports.isResinProject =
-
git
TODO: Find a way to test this functionCheck if an application was already initialized
It checks if we have a resin remote added already.
resin.vcs.isResinProject 'my/resin/app', (error, initialized) -> if initialized console.log('It\'s already a resin app!') else console.log('It\'s just a boring project! It should be resinified!')