2.0.0 • Published 9 years ago

cccf-scale v2.0.0

Weekly downloads
3
License
BSD
Repository
github
Last release
9 years ago

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.