class MongoOrchestration < Formula include Language::Python::Virtualenv desc "REST API to manage MongoDB configurations on a single host" homepage "https://github.com/10gen/mongo-orchestration" url "https://files.pythonhosted.org/packages/6d/b5/624a02d5f6cbfa8eb3c6554f5387c4739ad283bac7efb27ee99434a4d314/mongo-orchestration-0.6.11.tar.gz" sha256 "7a09706d36e94ae767e90646fed98a52b426a4d14b0f4f724b185e292ac8f425" head "https://github.com/10gen/mongo-orchestration.git" bottle do cellar :any_skip_relocation sha256 "6cd36a0183dc892ad08209dbd418f0e337ca5aff993adfb86e17a4a43b63352d" => :high_sierra sha256 "9633282e00a2bdfa3d0ba93b5302177d6a9be34f06f645b6e78edfa8aa6e950c" => :sierra sha256 "21d36a51b5f5896bfce70e39a815728939a8d875333c3dbdbb672e627b7dd3a5" => :el_capitan end depends_on "python@2" resource "bottle" do url "https://files.pythonhosted.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c/bottle-0.12.13.tar.gz" sha256 "39b751aee0b167be8dffb63ca81b735bbf1dd0905b3bc42761efedee8f123355" end resource "CherryPy" do url "https://files.pythonhosted.org/packages/50/c6/6c3d7a3221b0f098f8684037736e5604ea1586a3ba450c4a52b48f5fc2b4/CherryPy-7.0.0.tar.gz" sha256 "faead7c5c7ca2526aff8f179a24d699127ed307c3393eeef9610a33b93650bef" end resource "pymongo" do url "https://files.pythonhosted.org/packages/a8/f6/f324f5c669478644ac64594b9d746a34e185d9c34d3f05a4a6a6dab5467b/pymongo-3.5.1.tar.gz" sha256 "e820d93414f3bec1fa456c84afbd4af1b43ff41366321619db74e6bc065d6924" end resource "six" do url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz" sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9" end def install virtualenv_install_with_resources end plist_options :startup => true, :manual => "#{HOMEBREW_PREFIX}/opt/mongo-orchestration/bin/mongo-orchestration -b 127.0.0.1 -p 8889 --no-fork start" def plist; <<~EOS Label mongo-orchestration ProgramArguments #{opt_bin}/mongo-orchestration -b 127.0.0.1 -p 8889 --no-fork start RunAtLoad EOS end test do system "#{bin}/mongo-orchestration", "-h" end end