34 lines
1.3 KiB
Ruby
34 lines
1.3 KiB
Ruby
class JujuWait < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Juju plugin for waiting for deployments to settle."
|
|
homepage "https://launchpad.net/juju-wait"
|
|
url "https://pypi.python.org/packages/96/82/6b1b566b75f668605469d9af220bed0104bd4dc12c66160771b32f3aab58/juju-wait-2.5.0.tar.gz"
|
|
sha256 "05354b87e65b19a67176e470b4edf2588ae3ec301576b4a5214bc698c420671e"
|
|
|
|
bottle do
|
|
sha256 "61c0d5abc9f494f01b6ed108b9c39424d9c5f8e189bdaf2802c18652419f1cc4" => :sierra
|
|
sha256 "a51b32c830f32bdd9124255d7309b3c0d0d28eb5c601ef60aba1d6903ccc5dd9" => :el_capitan
|
|
sha256 "41dd695a166212b33abb723568c6a149ddf62be91c56545dbe4ee658382c5c70" => :yosemite
|
|
end
|
|
|
|
depends_on :python3
|
|
depends_on "libyaml"
|
|
depends_on "juju"
|
|
|
|
resource "pyyaml" do
|
|
url "https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz"
|
|
sha256 "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
# Note: Testing this plugin requires a Juju environment that's in the
|
|
# process of deploying big software. This plugin relies on those application
|
|
# statuses to determine if an environment is completely deployed or not.
|
|
system "#{bin}/juju-wait", "--version"
|
|
end
|
|
end
|