Permalink
Browse files

Formula for the CloudBees RUN@cloud SDK.

This replaces the stax-sdk formula. This SDK is the next iteration of the
stax-sdk, and it has been rebranded cloudbees-sdk due to stax merging with
CloudBees. See https://cloudbees.zendesk.com/entries/414109-cloudbees-sdk and
ttps://cloudbees.zendesk.com/entries/420548-stax-migration-faq for details.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 8a60de4 commit 8234e9c5a5516237eddd92cf8c87990b10acc6e8 @imeredith imeredith committed with adamv Jan 31, 2011
Showing with 27 additions and 24 deletions.
  1. +1 −0 Library/Aliases/stax-sdk
  2. +26 −0 Library/Formula/cloudbees-sdk.rb
  3. +0 −24 Library/Formula/stax-sdk.rb
View
@@ -0,0 +1,26 @@
+require 'formula'
+
+class CloudbeesSdk <Formula
+ url 'http://cloudbees-downloads.s3.amazonaws.com/sdk/cloudbees-sdk-0.5.0-dist.zip'
+ version '0.5.0'
+ homepage 'https://cloudbees.zendesk.com/entries/414109-cloudbees-sdk'
+ md5 'e3e2f68b687df9db3a7ceb46df49e000'
+
+ def shim_script target
+ <<-EOS.undent
+ #!/bin/bash
+ export BEES_HOME=#{libexec}
+ #{libexec}/#{target} $*
+ EOS
+ end
+
+ def install
+ rm Dir['*.bat', '*.lnk']
+ libexec.install Dir['*']
+
+ (bin+'bees').write shim_script('bees')
+ (bin+'beesd').write shim_script('beesd')
+ (bin+'stax').write shim_script('stax')
+ (bin+'staxd').write shim_script('staxd')
+ end
+end
@@ -1,24 +0,0 @@
-require 'formula'
-
-class StaxSdk <Formula
- url 'http://stax-downloads.s3.amazonaws.com/sdk/stax-sdk-0.3.8-dist.zip'
- version '0.3.8'
- homepage 'http://wiki.stax.net/w/index.php/SDK'
- md5 'db14071f8c1628ed23bb66369fcca8bf'
-
- def shim_script target
- <<-EOS.undent
- #!/bin/bash
- export STAX_HOME=#{libexec}
- #{libexec}/#{target} $*
- EOS
- end
-
- def install
- rm Dir['*.bat', '*.lnk']
- libexec.install Dir['*']
-
- (bin+'stax').write shim_script('stax')
- (bin+'staxd').write shim_script('staxd')
- end
-end

0 comments on commit 8234e9c

Please sign in to comment.