2011-01-31 04:48:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class CloudbeesSdk < Formula
|
2011-05-18 22:45:36 +00:00
|
|
|
url 'http://cloudbees-downloads.s3.amazonaws.com/sdk/cloudbees-sdk-0.6.0-dist.zip'
|
|
|
|
version '0.6.0'
|
2011-01-31 04:48:59 +00:00
|
|
|
homepage 'https://cloudbees.zendesk.com/entries/414109-cloudbees-sdk'
|
2011-05-18 22:45:36 +00:00
|
|
|
md5 '2e109218d5a4537548e41a0a0e7ed5c7'
|
2011-01-31 04:48:59 +00:00
|
|
|
|
|
|
|
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
|