homebrew-core/Formula/juju-wait.rb
2018-03-10 02:40:06 -08:00

36 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://files.pythonhosted.org/packages/3d/c2/8cce9ec8386be418a76566fcd2e7dcbaa7138a92b0b9b463306d9191cfd7/juju-wait-2.6.2.tar.gz"
sha256 "86622804896e80f26a3ed15dff979584952ba484ccb5258d8bab6589e26dd46d"
revision 3
bottle do
cellar :any
sha256 "51906945fb39ed28fa33b92a98a81d47a3fd49637010679bcad42422d3098c34" => :high_sierra
sha256 "3e1fb2315eb92e4e53bc2877bf69fce7305b0080c777776ecf86aaa24f95bfe1" => :sierra
sha256 "1b27054cb556c62bbaf505dd42a8c1df01e6aaf269a2bc9ca72fa8394c0d8c4c" => :el_capitan
end
depends_on "python"
depends_on "libyaml"
depends_on "juju"
resource "pyyaml" do
url "https://files.pythonhosted.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