homebrew-core/Formula/cloudbees-sdk.rb
2012-02-11 15:36:59 -08:00

25 lines
638 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-0.7.4-dist.zip'
md5 'fd56b54349345588707dc09c1e0120f6'
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