homebrew-core/Formula/cloudbees-sdk.rb
Mark Devlin 1f831313c9 cloudbees-sdk 1.5.0
Closes Homebrew/homebrew#19905.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-18 18:01:02 -05:00

25 lines
646 B
Ruby

require 'formula'
class CloudbeesSdk < Formula
homepage 'http://wiki.cloudbees.com/bin/view/RUN/BeesSDK'
url 'http://cloudbees-downloads.s3.amazonaws.com/sdk/cloudbees-sdk-1.5.0-bin.zip'
sha1 '422ab133f821ea4cdbfb2572c20e17526032c069'
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