Explorar el Código

Checkpoint progress on rsc package

Douglas Thrift hace 7 años
padre
commit
8eb1e1f7c5
Se han modificado 2 ficheros con 58 adiciones y 0 borrados
  1. 43 0
      automatic/rsc/rsc.nuspec
  2. 15 0
      automatic/rsc/tools/chocolateyinstall.ps1

+ 43 - 0
automatic/rsc/rsc.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>rsc</id>
+    <version>6.4.0</version>
+    <packageSourceUrl>https://github.com/douglaswth/chocolatey-packages/tree/master/automatic/rsc</packageSourceUrl>
+    <owners>Douglas Thrift</owners>
+    <title>rsc</title>
+    <authors>RightScale</authors>
+    <projectUrl>https://github.com/rightscale/rsc</projectUrl>
+    <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 admin 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
+
+`rsc` provides both a command line tool and a go package for interacting with the RightScale APIs.
+The currently supported APIs are the RightScale Cloud Management API 1.5 and 1.6 APIs, the
+RightScale Self-Service 1.0 APIs (latest version for this product) and the RightLink10 APIs exposed
+by the RightLink10 agent. The RightScale APIs reference can be found on the
+[RightScale docs](http://docs.rightscale.com/api/) site.
+
+`rsc` can be used in one of two ways:
+
+* as a command line tool
+* as a way to make API requests to RightScale programmatically from Go code
+
+## Command Line Tool
+
+The command line tool uses subcommands to interact with each API. Use `rsc cm15` to send requests
+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.
+    </description>
+    <releaseNotes>See the [CHANGELOG](https://github.com/rightscale/rsc/blob/master/CHANGELOG.md).</releaseNotes>
+  </metadata>
+  <files>
+    <file src="tools\**" target="tools" />
+  </files>
+</package>

+ 15 - 0
automatic/rsc/tools/chocolateyinstall.ps1

@@ -0,0 +1,15 @@
+$ErrorActionPreference = 'Stop';
+
+$packageName= $env:ChocolateyPackageName
+$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
+$url64      = 'https://binaries.rightscale.com/rsbin/rsc/v6.4.0/rsc-windows-amd64.zip'
+
+$packageArgs = @{
+  packageName   = $packageName
+  unzipLocation = $toolsDir
+  url64bit      = $url64
+  checksum64    = '24bf87d8e029f4da6b0e96611f3bdc4ba746f5de59c93896c9fb22d88458ecda'
+  checksumType64= 'sha256'
+}
+
+Install-ChocolateyZipPackage @packageArgs