From d60643049842ca1119d8fc702b08e17edae316ad Mon Sep 17 00:00:00 2001 From: Shivansh Gahlot <42472145+ShivanshGahlot@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:46:57 +0530 Subject: [PATCH] Fixed formatting of rb files for 1.7.2 (#91) --- Formula/debezium@2.3.3-1.7.2.rb | 31 +++++++++-------- Formula/yb-voyager@1.7.2.rb | 59 ++++++++++++++++----------------- 2 files changed, 44 insertions(+), 46 deletions(-) diff --git a/Formula/debezium@2.3.3-1.7.2.rb b/Formula/debezium@2.3.3-1.7.2.rb index 873710f..e859057 100644 --- a/Formula/debezium@2.3.3-1.7.2.rb +++ b/Formula/debezium@2.3.3-1.7.2.rb @@ -1,18 +1,17 @@ +class DebeziumAT233172 < Formula + desc "Debezium is an open source distributed platform for change data capture" + homepage "https://github.com/yugabyte/yb-voyager/" + url "https://github.com/yugabyte/yb-voyager/releases/download/yb-voyager%2F1.7.2/debezium-server.tar.gz" + version "2.3.3-1.7.2" + sha256 "2fafe1c0dc9401528685b7d9a25c9a9872adee437df0ddd9dcf3687d997cb8e0" + license "Apache-2.0" + depends_on "maven" => :build + depends_on "java11" => :build - class DebeziumAT233172 < Formula - desc "Debezium is an open source distributed platform for change data capture" - homepage "https://github.com/yugabyte/yb-voyager/" - url "https://github.com/yugabyte/yb-voyager/releases/download/yb-voyager%2F1.7.2/debezium-server.tar.gz" - version "2.3.3-1.7.2" - sha256 "2fafe1c0dc9401528685b7d9a25c9a9872adee437df0ddd9dcf3687d997cb8e0" - license "Apache-2.0" - depends_on "maven" => :build - depends_on "java11" => :build - - def install - ENV.deparallelize - (prefix/"debezium-server").mkdir - cp_r ".", prefix/"debezium-server" - end - end + def install + ENV.deparallelize + (prefix/"debezium-server").mkdir + cp_r ".", prefix/"debezium-server" + end +end \ No newline at end of file diff --git a/Formula/yb-voyager@1.7.2.rb b/Formula/yb-voyager@1.7.2.rb index eb825e2..bfda7e7 100644 --- a/Formula/yb-voyager@1.7.2.rb +++ b/Formula/yb-voyager@1.7.2.rb @@ -1,32 +1,31 @@ +class YbVoyagerAT172 < Formula + desc "YugabyteDB's migration tool" + homepage "https://github.com/yugabyte/yb-voyager/" + url "https://github.com/yugabyte/yb-voyager/archive/refs/tags/yb-voyager/v1.7.2.tar.gz" + sha256 "16ebe7dee1593420df242c18ce5a1cbdac3b00c39b65c5da0441a8dabd3961cd" + version "1.7.2" + license "Apache-2.0" + depends_on "go" => :build + depends_on "libpq" + depends_on "sqlite" + depends_on "yugabyte/tap/debezium@2.3.3-1.7.2" + + def install + ENV.deparallelize + Dir.chdir("yb-voyager") do + system "go", "build" + bin.install "yb-voyager" + end + Dir.chdir("yb-voyager/src/srcdb/data") do + (prefix/"etc/").mkdir + (prefix/"etc/yb-voyager/").mkdir + cp_r "pg_dump-args.ini", prefix/"etc/yb-voyager/pg_dump-args.ini" + cp_r "gather-assessment-metadata", prefix/"etc/yb-voyager/" + end + end - class YbVoyagerAT172 < Formula - desc "YugabyteDB's migration tool" - homepage "https://github.com/yugabyte/yb-voyager/" - url "https://github.com/yugabyte/yb-voyager/archive/refs/tags/yb-voyager/v1.7.2.tar.gz" - sha256 "16ebe7dee1593420df242c18ce5a1cbdac3b00c39b65c5da0441a8dabd3961cd" - version "1.7.2" - license "Apache-2.0" - depends_on "go" => :build - depends_on "libpq" - depends_on "sqlite" - depends_on "yugabyte/tap/debezium@2.3.3-1.7.2" - - def install - ENV.deparallelize - Dir.chdir("yb-voyager") do - system "go", "build" - bin.install "yb-voyager" - end - Dir.chdir("yb-voyager/src/srcdb/data") do - (prefix/"etc/").mkdir - (prefix/"etc/yb-voyager/").mkdir - cp_r "pg_dump-args.ini", prefix/"etc/yb-voyager/pg_dump-args.ini" - cp_r "gather-assessment-metadata", prefix/"etc/yb-voyager/" - end - end - - test do - system "#{bin}/yb-voyager", "version" - end - end + test do + system "#{bin}/yb-voyager", "version" + end +end \ No newline at end of file