homebrew-core/Formula/easyengine.rb

29 lines
764 B
Ruby

class Easyengine < Formula
desc "Command-line control panel to manage WordPress sites"
homepage "https://easyengine.io/"
url "https://github.com/EasyEngine/easyengine/releases/download/v4.1.3/easyengine.phar"
sha256 "d6e6509ef61ee1a30b2856cf9d775a195dd5cc2670a9ebd85846ea29f6a36bf0"
license "MIT"
bottle :unneeded
depends_on "dnsmasq"
depends_on "php"
def install
bin.install "easyengine.phar" => "ee"
end
test do
system bin/"ee config set locale hi_IN"
output = shell_output("#{bin}/ee config get locale")
assert_match "hi_IN", output
output = shell_output("#{bin}/ee cli version")
assert_match "EE #{version}", output
output = shell_output("#{bin}/ee cli info")
assert_match "Darwin", output
end
end