Skip to content

enric11/cf-cli-check-before-deploy

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PCF CLI Plugin Check Before Deploy

Check Before Deploy for PCF CLI Plugin

This repository provides a Cloud Foundry CLI plugin for check the YAML file before launch deploy instructions.

Installing

To install the current released version of the plugin in the cf CLI just run:

$ cf install-plugin -r CF-Community "check-before-deploy"

The plugin's commands may then be listed by issuing cf help.

To update the plugin, uninstall it as follows and then re-install the plugin as above:

$ cf uninstall-plugin check-before-deploy

Building

You need to install GO.

The specific libraries used in this project are ready in the "vendor" folder.

After install external libraries, it's possible ejecute on windows "compile.bat" to generate plugin in different platforms (osx,windows,linux).

To install the built version use:

$ cf install-plugin -f <Your_OS>/check-before-deploy<Your_OS>

Testing

Run the tests as follows to check all commands (Actually 2):

$ cd cf-cli-check-before-deploy
$ cf check-before-deploy -file mta.yaml -all

Results

Image of execution

License

The Check Before Deploy plugin for PCF CLI plugin is Open Source software released under the Apache 2.0 license.