diff options
| author | Rodrigo Chacon | 2013-08-01 14:50:08 -0300 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-08-17 08:43:36 -0700 | 
| commit | 4d8c8188ec044faae55913b69c022d51dc9a609c (patch) | |
| tree | eaac41288953ecc03aa3eeec80aae7b059525814 | |
| parent | 2a3fc63029e78e831b4a4c457dc7f5e335542eb3 (diff) | |
| download | homebrew-4d8c8188ec044faae55913b69c022d51dc9a609c.tar.bz2 | |
Juju 1.12.0
Closes #21858.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/juju.rb | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/juju.rb b/Library/Formula/juju.rb new file mode 100644 index 000000000..b8b0cbb74 --- /dev/null +++ b/Library/Formula/juju.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Juju < Formula +  homepage 'https://juju.ubuntu.com' +  url "https://launchpad.net/juju-core/1.12/1.12.0/+download/juju-core_1.12.0-1.tar.gz" +  version "1.12.0-1" +  sha1 "b552919f5f4ed5a34885a2a6a8a4a0d7be485267" + +  depends_on 'go' => :build + +  def install +    ENV['GOPATH'] = buildpath +    args = %w(install launchpad.net/juju-core/cmd/juju) +    args.insert(1, "-v") if ARGV.verbose? +    system "go", *args +    bin.install 'bin/juju' +  end + +  def test +    system "#{bin}/juju", "version" +  end +end  | 
