Code coverage report for autoScaling/index.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (9 / 9)      Ignored: none     

All files » autoScaling/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26    1 1 1 1 1   1 3   3                         1  
'use strict'
 
var _ = require('lodash')
var autoScalingPromised = require('aws-promised/autoScaling')
var doesAutoScalingGroupExist = require('./doesAutoScalingGroupExist')
var doesLaunchConfigurationExist = require('./doesLaunchConfigurationExist')
var doesScalingPolicyExist = require('./doesScalingPolicyExist')
 
function autoScalingExistence (options) {
  var autoScaling = autoScalingPromised(options)
 
  return {
    doesAutoScalingGroupExist: _.partial(
      doesAutoScalingGroupExist,
      autoScaling
    ),
    doesLaunchConfigurationExist: _.partial(
      doesLaunchConfigurationExist,
      autoScaling
    ),
    doesScalingPolicyExist: _.partial(doesScalingPolicyExist, autoScaling)
  }
}
 
module.exports = autoScalingExistence