homebrew-core/Formula/cloudbees-sdk.rb

26 lines
646 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class CloudbeesSdk < Formula
2012-02-11 23:36:59 +00:00
homepage 'http://wiki.cloudbees.com/bin/view/RUN/BeesSDK'
url 'http://cloudbees-downloads.s3.amazonaws.com/sdk/cloudbees-sdk-1.2.1-bin.zip'
sha1 '4a32885c57c0e09ce1d5f7a7515ff012051d3b91'
def shim_script target
<<-EOS.undent
#!/bin/bash
export BEES_HOME=#{libexec}
2012-02-11 23:36:59 +00:00
"#{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