openwhisk-deploy
[![Build Status](https://travis-ci.org/lionelvillard/openwhisk-project.svg?branch=master)](https://travis-ci.org/lionelvillard/openwhisk-project) [![Dependencies](https://david-dm.org/lionelvillard/openwhisk-project.svg)](https://david-dm.org/lionelvillar
Last updated 2 years ago by villardl .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install openwhisk-deploy 
SYNC missed versions from official npm registry.

Build Status Dependencies

This project provides a set of tools for managing a collection of OpenWhisk entities and related services (eg. Cloudant, Redis, etc...).

Getting started

$ npm install openwhisk-deploy --save

Main Features

  • deploy: deploy a set of OpenWhisk entities and services from description stored in project configuration files.
  • undeploy: undeploy a set of managed OpenWhisk entities and managed services.
  • clean: remove all deployed entities in a namespace. Services are left untouched.
  • refresh: update the local deployment configuration files against deployed entities.
  • sync: update the local deployment configuration files against files stored locally.

Example


# try-catch combinator example
packages:
  plugin-combinator-1:
    actions:
      safeToDelete:
        kind: nodejs
        code: |
          function main(params) {
            if (params.delete)
              return {}
            throw new Error('Oh No!')
          } 
      delete:
        kind: nodejs
        code: |
          function main(params) {
            delete params[params.delete]
            return params
          }

      handleError:
        kind: nodejs
        code: |
          function main(params) {
            return {status: 'Um a very bad thing just happened - sorry?'}
          }
          
      trycatch:
        combinator: try safeToDelete catch handleError

      eca:
        combinator: if safeToDelete then delete

      forward:
        combinator: forward ["authkey"] after safeToDelete with ["delete"]
        inputs:
          authkey: very private
          delete: something

      retry:
        combinator: retry delete 5 times

Deployment format specification

See specification

Development

$ git clone https://github.com/lionelvillard/openwhisk-project.git
$ cd openwhisk-project
$ npm i

To run the tests, it is recommended to create the file .wskprops in the project root directory. Then do:

$ npm test

Current Tags

  • 0.9.2                                ...           latest (2 years ago)

14 Versions

  • 0.9.2                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.4                                ...           2 years ago
  • 0.7.3                                ...           2 years ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (21)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |