Code coverage report for ec2/index.js

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

All files » ec2/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18    1 1 1 1   1 2   2           1  
'use strict'
 
var partial = require('lodash/function/partial')
var ec2Promised = require('aws-promised/ec2')
var doesInstanceExist = require('./doesInstanceExist')
var doesSecurityGroupExist = require('./doesSecurityGroupExist')
 
function ec2Existence (options) {
  var ec2 = ec2Promised(options)
 
  return {
    doesInstanceExist: partial(doesInstanceExist, ec2),
    doesSecurityGroupExist: partial(doesSecurityGroupExist, ec2)
  }
}
 
module.exports = ec2Existence