2.0.2 • Published 8 years ago

resin-vcs v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

resin-vcs

npm version dependencies Build Status Build status

A layer between Resin.io and VCS.

Role

The intention of this module is to provide an extensible layer between Resin.io and version control systems, such as git.

Systems

Currently this module only supports git, but will be extended in the future.

Installation

Install resin-vcs by running:

$ npm install --save resin-vcs

Documentation

vcs.initialize(directory) ⇒ Promise

Kind: static method of vcs
Summary: Initialize a directory with git
Access: public

ParamTypeDescription
directoryStringdirectory

Example

vcs.initialize('foo/bar')

vcs.clone(url, directory) ⇒ Promise

Kind: static method of vcs
Summary: Clone a git repository to a directory
Access: public

ParamTypeDescription
urlStringrepository url
directoryStringdirectory

Example

vcs.clone('https://github.com/resin-io/resin-vcs.git', 'foo/bar')

vcs.associate(directory, url) ⇒ Promise

Kind: static method of vcs
Summary: Add a resin remote to a git repository
Access: public

ParamTypeDescription
directoryStringdirectory
urlStringrepository url

Example

vcs.associate('foo/bar', 'jviotti@git.resin.io:jviotti/foobar.git')

vcs.getApplicationName(directory) ⇒ Promise.<(String|undefined)>

Kind: static method of vcs
Summary: Get the associated application name from a repository
Returns: Promise.<(String|undefined)> - application name
Access: public

ParamTypeDescription
directoryStringdirectory

Example

vcs.getApplicationName('foo/bar').then (applicationName) ->
	if applicationName?
		console.log(applicationName)

Support

If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.

Tests

Run the test suite by doing:

$ gulp test

Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

$ gulp lint

License

The project is licensed under the MIT license.

2.0.2

8 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago