2011-01-31 04:48:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class CloudbeesSdk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line tools to make use of the CloudBees Platform"
|
2012-02-11 23:36:59 +00:00
|
|
|
homepage 'http://wiki.cloudbees.com/bin/view/RUN/BeesSDK'
|
2013-10-15 15:50:38 +00:00
|
|
|
url 'http://cloudbees-downloads.s3.amazonaws.com/sdk/cloudbees-sdk-1.5.2-bin.zip'
|
|
|
|
sha1 '8c0d0e6ef3c412d07b5a939afd70dcdc0b4b913b'
|
2011-01-31 04:48:59 +00:00
|
|
|
|
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
export BEES_HOME=#{libexec}
|
2012-02-11 23:36:59 +00:00
|
|
|
"#{libexec}/#{target}" "$@"
|
2011-01-31 04:48:59 +00:00
|
|
|
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
|