homebrew-core/Formula/easyengine.rb

44 lines
1.9 KiB
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.6.2/easyengine.phar"
sha256 "857c72d1007f8a85e6bdf02b20e55154d1877e53bd0ec5c2e46c7d7b54d660f9"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "dda5e7277b126dbc34fddfe679511226210ed5a440b91013f926c0d4769a7ad1"
sha256 cellar: :any_skip_relocation, arm64_monterey: "dda5e7277b126dbc34fddfe679511226210ed5a440b91013f926c0d4769a7ad1"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "dda5e7277b126dbc34fddfe679511226210ed5a440b91013f926c0d4769a7ad1"
sha256 cellar: :any_skip_relocation, ventura: "a3a8ad0370ecadbca439a614dd115f0febdb57ba6422de537a503a2f9424a42e"
sha256 cellar: :any_skip_relocation, monterey: "a3a8ad0370ecadbca439a614dd115f0febdb57ba6422de537a503a2f9424a42e"
sha256 cellar: :any_skip_relocation, big_sur: "a3a8ad0370ecadbca439a614dd115f0febdb57ba6422de537a503a2f9424a42e"
sha256 cellar: :any_skip_relocation, catalina: "a3a8ad0370ecadbca439a614dd115f0febdb57ba6422de537a503a2f9424a42e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "dda5e7277b126dbc34fddfe679511226210ed5a440b91013f926c0d4769a7ad1"
end
depends_on "dnsmasq"
depends_on "php"
# Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix
on_macos do
on_intel do
pour_bottle? only_if: :default_prefix
end
end
def install
bin.install "easyengine.phar" => "ee"
end
test do
return if OS.linux? # requires `sudo`
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 OS.kernel_name, output
end
end