diff --git a/Formula/download-ram.rb b/Formula/download-ram.rb new file mode 100644 index 0000000..5e1cead --- /dev/null +++ b/Formula/download-ram.rb @@ -0,0 +1,20 @@ +class DownloadRam < Formula + desc "Download RAM by creating and enabling a swap file" + homepage "https://github.com/agresdominik/download-ram" + version "0.2.0" + url "https://github.com/agresdominik/download-ram/archive/refs/tags/v0.2.0.tar.gz" + sha256 "05df6ccebbb05a6d876ffec1c0b3ddac97b649ea6ca680f64cc04ba92608205e" + license "MIT" + + on_linux do + depends_on "util-linux" + end + + def install + bin.install "download-ram.sh" => "download-ram" + end + + test do + assert_predicate bin/"download-ram", :exist? + end +end diff --git a/README.md b/README.md index 10e92aa..3d63f0c 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,11 @@ brew install cheatsh ``` Visit [cheat_sheet](https://github.com/agresdominik/cheat_sheet) to see more info + +### download-ram + +```brew +brew install download-ram +``` + +Visit [download-ram](https://github.com/agresdominik/download-ram) to see more info