Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

push2cloud-cf-adapter

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

push2cloud-cf-adapter - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## [v1.4.0](https://github.com/push2cloud/cf-adapter/compare/v1.3.0...v1.4.0)
- added options for dockerImage
## [v1.3.0](https://github.com/push2cloud/cf-adapter/compare/v1.2.1...v1.3.0)

@@ -2,0 +5,0 @@ - possibility to create routes with path and port or generatedPort

@@ -59,3 +59,8 @@ const _ = require('lodash');

memory: convertSize(options.memory) || defaults.memory,
instances: convertSize(options.instances) || defaults.instances
instances: convertSize(options.instances) || defaults.instances,
health_check_type: options.healthCheckType,
health_check_timeout: options.healthCheckTimeout,
diego: options.diego,
enable_ssh: options.enableSSH,
docker_image: options.dockerImage
}

@@ -62,0 +67,0 @@ }, (err, response, result) => {

@@ -0,1 +1,3 @@

const debug = require('debug')('push2cloud-cf-adapter:pushApp');
module.exports = (api) => {

@@ -5,2 +7,6 @@ return (options, callback) => {

if (err) return callback(err);
if (!options.path) {
debug('skip to upload app, because no path set for:', options);
return callback(null, result);
}
options.appGuid = result.metadata.guid;

@@ -7,0 +13,0 @@ api.uploadApp(options, (err) => {

@@ -35,3 +35,8 @@ const convertSize = require('../lib/convertSize');

instances: convertSize(options.instances) || undefined,
state: options.state
state: options.state,
health_check_type: options.healthCheckType,
health_check_timeout: options.healthCheckTimeout,
diego: options.diego,
enable_ssh: options.enableSSH,
docker_image: options.dockerImage
}

@@ -38,0 +43,0 @@ }, (err, response, result) => {

2

package.json
{
"name": "push2cloud-cf-adapter",
"version": "1.3.0",
"version": "1.4.0",
"description": "abstracts cloud foundry api",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -430,2 +430,6 @@ # push2cloud-cf-adapter

* `instances` - *Optional* The number of instances of the app to run. To ensure optimal availability, ensure there are at least 2 instances.
* `dockerImage` - *Optional* Name of the Docker image containing the app.
* `enableSSH` - *Optional* Enable SSHing into the app. Supported for Diego only. false if SSH is disabled globally or on the space, true if enabled for both
* `healthCheckType` - *Optional* Type of health check to perform. 'port' or 'process'
* `healthCheckTimeout` - *Optional* Timeout for health checking of an staged app when starting up
* `callback(err, result)` - A callback which is called when function has finished, or an error occurs.

@@ -432,0 +436,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc