Browse Source

Add a package for fpt

Douglas Thrift 4 years ago
parent
commit
e83c82e385

+ 1 - 1
automatic/README.md

@@ -6,7 +6,7 @@ This is where you put your Chocolatey packages that are automatically packaged u
 
 AU works with packages without automatic package tokens necessary. So you can treat the packages as normal.
 
-Execute `update_all.ps1` in the repository root to run [AU](https://chocolatey.org/packages/au) updater with default options. 
+Execute `update_all.ps1` in the repository root to run [AU](https://chocolatey.org/packages/au) updater with default options.
 
 To fully setup all the features ensure you perform the steps in the [setup/README.md](https://github.com/chocolatey/chocolatey-packages-template/blob/master/setup/README.md#automatic-updater-au)
 

+ 4 - 0
automatic/bluebrick/bluebrick.nuspec

@@ -18,6 +18,10 @@
     <summary>LEGO® Layout Editor</summary>
     <description>
 BlueBrick is designed specially for the AFOLs who want to prepare the layouts of their LEGO® exhibitions. BlueBrick is compatible with [LDRAW](http://www.ldraw.org/) and ["Train Depot Track Designer"](http://www.ngltc.org/Train_Depot/td.htm), and is designed with an easily expandable parts database. Its layers feature allows you to better organize your map, and some special layers make annotations and area assignments possible.
+
+**Please Note**: This is an automatically updated package. If you find it is
+out of date by more than a day or two, please contact the maintainer(s) and
+let them know the package is no longer updating correctly.
     </description>
     <releaseNotes>
 See the Change log section of the [Download](https://bluebrick.lswproject.com/download.html) page.

+ 43 - 0
automatic/fpt/fpt.nuspec

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
+  <metadata>
+    <id>fpt</id>
+    <version>1.0.8</version>
+    <packageSourceUrl>https://github.com/douglaswth/chocolatey-packages/tree/master/automatic/fpt</packageSourceUrl>
+    <owners>Douglas Thrift</owners>
+    <title>fpt - Flexera Policy Tool</title>
+    <authors>Flexera</authors>
+    <projectUrl>https://github.com/rightscale/policy_sdk/tree/master/cmd/fpt</projectUrl>
+    <iconUrl>http://cdn.rawgit.com/douglaswth/chocolatey-packages/master/icons/fpt.png</iconUrl>
+    <licenseUrl>https://github.com/rightscale/policy_sdk/blob/master/LICENSE</licenseUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <projectSourceUrl>https://github.com/rightscale/policy_sdk</projectSourceUrl>
+    <bugTrackerUrl>https://github.com/rightscale/policy_sdk/issues</bugTrackerUrl>
+    <tags>fpt flexera rightscale API rest cli go golang</tags>
+    <summary>Flexera Policy Tool</summary>
+    <description>
+# fpt - Flexera Policy Tool
+
+`fpt` is a command line tool to aid in the development and testing of [RightScale Policies](https://docs.rightscale.com/policies/). The tool is able to syntax check, upload, and run Policies.
+
+### Configuration
+
+`fpt` interfaces with the [Policy API](https://reference.rightscale.com/governance-policies/). Credentials for the API can be provided in two ways:
+
+1. YAML-based configuration file -  Run `fpt config account &lt;name&gt;`, where name is a nickname for the account, to interactively write the configuration file into `$HOME/.fpt.yml` for the first time. You will be prompted for the following fields:
+    * Account ID - Numeric account number, such as `60073`
+    * API endpoint host - Hostname, typically `governance-3.rightscale.com`
+    * Refresh Token - Your personal OAuth token available from **Settings &gt; Account Settings &gt; API Credentials** in the RightScale Cloud Management dashboard
+2. Environment variables - These are meant to be used by build systems such as Travis CI. The following vars must be set: `FPT_LOGIN_ACCOUNT_ID`, `FPT_LOGIN_ACCOUNT_HOST`, `FPT_LOGIN_ACCOUNT_REFRESH_TOKEN`. These variables are equivalent to the ones described in the YAML section above.
+
+**Please Note**: This is an automatically updated package. If you find it is
+out of date by more than a day or two, please contact the maintainer(s) and
+let them know the package is no longer updating correctly.
+</description>
+    <releaseNotes>See the [ChangeLog](https://github.com/rightscale/policy_sdk/blob/master/cmd/fpt/ChangeLog.md).</releaseNotes>
+  </metadata>
+  <files>
+    <file src="tools\**" target="tools" />
+  </files>
+</package>

+ 13 - 0
automatic/fpt/tools/chocolateyinstall.ps1

@@ -0,0 +1,13 @@
+$ErrorActionPreference = 'Stop';
+
+$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
+
+$packageArgs = @{
+  packageName    = $env:ChocolateyPackageName
+  unzipLocation  = $toolsDir
+  url64bit       = 'https://binaries.rightscale.com/rsbin/fpt/v1.0.8/fpt-windows-amd64.zip'
+  checksum64     = '0a68cd97aa281d86354071d9eea39e1881ab14f9f2a771c23ce876cbe80eab62'
+  checksumType64 = 'sha256'
+}
+
+Install-ChocolateyZipPackage @packageArgs

+ 23 - 0
automatic/fpt/update.ps1

@@ -0,0 +1,23 @@
+Import-Module au
+
+$latest_release = 'https://github.com/rightscale/policy_sdk/releases'
+
+function global:au_GetLatest {
+  $download_page = Invoke-WebRequest -Uri $latest_release -UseBasicParsing
+  $regex = '^.+/v(\d+\.\d+\.\d+)/fpt-windows-amd64\.zip$'
+  $url64 = $download_page.Links | ? href -Match $regex | select -First 1 -ExpandProperty href
+  $version = $url64 -replace $regex, '$1'
+  return @{ Version = $version; URL64 = $url64 }
+}
+
+function global:au_SearchReplace {
+  @{
+    'tools\chocolateyInstall.ps1' = @{
+      "(^\s+url64bit\s+=\s+)('.*')"       = "`$1'$($Latest.URL64)'"
+      "(^\s+checksum64\s+=\s+)('.*')"     = "`$1'$($Latest.Checksum64)'"
+      "(^\s+checksumType64\s+=\s+)('.*')" = "`$1'$($Latest.ChecksumType64)'"
+    }
+  }
+}
+
+update -ChecksumFor 64

+ 6 - 2
automatic/right-st/right-st.nuspec

@@ -7,14 +7,14 @@
     <packageSourceUrl>https://github.com/douglaswth/chocolatey-packages/tree/master/automatic/right-st</packageSourceUrl>
     <owners>Douglas Thrift</owners>
     <title>right_st - RightScale ServerTemplate and RightScript tool</title>
-    <authors>RightScale</authors>
+    <authors>Flexera</authors>
     <projectUrl>https://github.com/rightscale/right_st</projectUrl>
     <iconUrl>http://cdn.rawgit.com/douglaswth/chocolatey-packages/master/icons/right-st.png</iconUrl>
     <licenseUrl>https://github.com/rightscale/right_st/blob/master/LICENSE</licenseUrl>
     <requireLicenseAcceptance>false</requireLicenseAcceptance>
     <projectSourceUrl>https://github.com/rightscale/right_st</projectSourceUrl>
     <bugTrackerUrl>https://github.com/rightscale/right_st/issues</bugTrackerUrl>
-    <tags>right_st rightscale API rest cli go golang</tags>
+    <tags>right_st flexera rightscale API rest cli go golang</tags>
     <summary>RightScale ServerTemplate and RightScript tool</summary>
     <description>
 `right_st` is a tool for managing RightScale ServerTemplate and RightScripts. The tool is able to download, upload, and show ServerTemplate and RightScripts using RightScale's API. This tool can easily be hooked into Travis CI or other build systems to manage these design objects if stored in Github. See below for usage examples.
@@ -28,6 +28,10 @@ Right ST interfaces with the [RightScale API](http://reference.rightscale.com/ap
     * API endpoint host - Hostname, typically `my.rightscale.com`
     * Refresh Token - Your personal OAuth token available from **Settings &gt; Account Settings &gt; API Credentials** in the RightScale Cloud Management dashboard
 2. Environment variables - These are meant to be used by build systems such as Travis CI. The following vars must be set: `RIGHT_ST_LOGIN_ACCOUNT_ID`, `RIGHT_ST_LOGIN_ACCOUNT_HOST`, `RIGHT_ST_LOGIN_ACCOUNT_REFRESH_TOKEN`. These variables are equivalent to the ones described in the YAML section above.
+
+**Please Note**: This is an automatically updated package. If you find it is
+out of date by more than a day or two, please contact the maintainer(s) and
+let them know the package is no longer updating correctly.
     </description>
     <releaseNotes>See the [ChangeLog](https://github.com/rightscale/right_st/blob/master/ChangeLog.md).</releaseNotes>
   </metadata>

+ 6 - 2
automatic/rsc/rsc.nuspec

@@ -6,14 +6,14 @@
     <packageSourceUrl>https://github.com/douglaswth/chocolatey-packages/tree/master/automatic/rsc</packageSourceUrl>
     <owners>Douglas Thrift</owners>
     <title>rsc - RightScale API Client</title>
-    <authors>RightScale</authors>
+    <authors>Flexera</authors>
     <projectUrl>https://github.com/rightscale/rsc</projectUrl>
     <iconUrl>http://cdn.rawgit.com/douglaswth/chocolatey-packages/master/icons/rsc.png</iconUrl>
     <licenseUrl>https://github.com/rightscale/rsc/blob/master/LICENSE</licenseUrl>
     <requireLicenseAcceptance>false</requireLicenseAcceptance>
     <projectSourceUrl>https://github.com/rightscale/rsc</projectSourceUrl>
     <bugTrackerUrl>https://github.com/rightscale/rsc/issues</bugTrackerUrl>
-    <tags>rsc rightscale API rest cli go golang</tags>
+    <tags>rsc flexera rightscale API rest cli go golang</tags>
     <summary>Generic RightScale API client Go package and command line tool</summary>
     <description>
 # rsc - A generic RightScale API client
@@ -35,6 +35,10 @@ The command line tool uses subcommands to interact with each API. Use `rsc cm15`
 to the RightScale Cloud Management API 1.5, `rsc cm16` to send requests to the RightScale Cloud
 Management API 1.6, `rsc ss` to send requests to the RightScale Self-Service API 1.0 and `rsc rl10`
 to send requests to RightLink10.
+
+**Please Note**: This is an automatically updated package. If you find it is
+out of date by more than a day or two, please contact the maintainer(s) and
+let them know the package is no longer updating correctly.
     </description>
     <releaseNotes>See the [CHANGELOG](https://github.com/rightscale/rsc/blob/master/CHANGELOG.md).</releaseNotes>
   </metadata>

BIN
icons/fpt.png