Last active
December 25, 2015 04:38
-
-
Save tsegismont/6918317 to your computer and use it in GitHub Desktop.
createBundleVersion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A simple function to create a new bundle version from a zip file containing | |
| * the bundle. | |
| * | |
| * @param pathToBundleZipFile the path to the bundle on the local file system | |
| * | |
| * @return an instance of BundleVersion class describing what's been created on | |
| * the RHQ server. | |
| */ | |
| function createBundleVersion(pathToBundleZipFile) { | |
| var contentHandle = scriptUtil.uploadContent(pathToBundleZipFile); | |
| return BundleManager.createBundleVersionViaContentHandle(contentHandle); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment