diff options
| l--------- | Library/Aliases/stax-sdk | 1 | ||||
| -rw-r--r-- | Library/Formula/cloudbees-sdk.rb | 26 | ||||
| -rw-r--r-- | Library/Formula/stax-sdk.rb | 24 |
3 files changed, 27 insertions, 24 deletions
diff --git a/Library/Aliases/stax-sdk b/Library/Aliases/stax-sdk new file mode 120000 index 000000000..665750318 --- /dev/null +++ b/Library/Aliases/stax-sdk @@ -0,0 +1 @@ +../Formula/cloudbees-sdk.rb
\ No newline at end of file diff --git a/Library/Formula/cloudbees-sdk.rb b/Library/Formula/cloudbees-sdk.rb new file mode 100644 index 000000000..8558f3810 --- /dev/null +++ b/Library/Formula/cloudbees-sdk.rb @@ -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 diff --git a/Library/Formula/stax-sdk.rb b/Library/Formula/stax-sdk.rb deleted file mode 100644 index 76b67c8d4..000000000 --- a/Library/Formula/stax-sdk.rb +++ /dev/null @@ -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 |
