0.0.14 • Published 8 years ago

semaphoreci v0.0.14

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

semaphoreci

Unofficial SemaphoreCi node api.

Install

$ npm install --save semaphoreci

Usage

var SemaphoreCi = require("semaphoreci").default

var config = {
  email: '<SEMAPHORE_EMAIL>',
  password: '<SEMAPHORE_PASSWORD>',
}
var projectName = '<INSERT_YOUR_PROJECT_NAME>'

var semaphoreCi = new SemaphoreCi(config);

semaphoreCi.createProject(projectName)
.then(function(){
  console.log("Created")
})
.catch(function(e){
  console.log(err)
})

API

constructor(config)

Constructor function

NameTypeDescription
configobjectconfiguration (see possible key values below)
Configuration keys
NameTypeDescription
emailstringThe email associated with your Semaphoreci account
passwordstringThe password associated with your Semaphoreci account
showbooleanOption to view the browser actions (defaults to false)

Returns: SemaphoreCi, instance of semaphoreci

var SemaphoreCi = require("semaphoreci").default
var config = {
  email: '<SEMAPHORE_EMAIL>',
  password: '<SEMAPHORE_PASSWORD>',
}
var semaphoreCi = new SemaphoreCi(config);

createProject(name)

Create a project (project must already be on your github)

NameTypeDescription
namenamethe name of your project
var SemaphoreCi = require("semaphoreci").default

var config = {
  email: '<SEMAPHORE_EMAIL>',
  password: '<SEMAPHORE_PASSWORD>',
}
var projectName = '<INSERT_YOUR_PROJECT_NAME>'

var semaphoreCi = new SemaphoreCi(config);

semaphoreCi.createProject(projectName)
.then(function(){
  console.log("Created")
})
.catch(function(e){
  console.log(err)
})

Notes

  • Currently only works for node projects, as we are defaulting to Node v6.1 when creating the project.

License

MIT © Joe Gesualdo

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago