26 lines
671 B
Ruby
26 lines
671 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.5/easyengine.phar"
|
|
sha256 "d9abef0aef4f87a54a9c48abcc999c2565a8ba43d109b11d695fb4abd32261a3"
|
|
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 info")
|
|
assert_match "Darwin", output
|
|
end
|
|
end
|