cccf-scale
Scale up and down a cccf config
Last updated 6 years ago by asbjornenge .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cccf-scale 
SYNC missed versions from official npm registry.

cccf-scale

This module can scale up and down a cccf config with a scale property.

Install

npm install cccf-scale

Use

var cs = require('cccf-scale')
var up = cs.up({
    id    : 'app',
    image : 'org/app',
    scale : 3
})
console.log(up)
// =>
// [
//    {
//        id    : 'app',
//        image : 'org/app',
//        scale : 3
//    },
//    {
//        id    : 'app-scale-1',
//        image : 'org/app'
//    },
//    {
//        id    : 'app-scale-2',
//        image : 'org/app'
//    }
// ]

var down = cs.down(up)
console.log(down)
// =>
// [
//    {
//        id    : 'app',
//        image : 'org/app',
//        scale : 3
//    }
// ]

Changelog

2.0.0

  • Using cccf v3.0.0

1.0.0

  • Initial release :tada:

enjoy.

Current Tags

  • 2.0.0                                ...           latest (6 years ago)

2 Versions

  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |