Skip to content

Commit

Permalink
Fixed formatting of rb files for 1.7.2 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanshGahlot authored Jul 4, 2024
1 parent dff1aa0 commit d606430
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 46 deletions.
31 changes: 15 additions & 16 deletions Formula/debezium@2.3.3-1.7.2.rb
Original file line number Diff line number Diff line change
@@ -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

59 changes: 29 additions & 30 deletions Formula/yb-voyager@1.7.2.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d606430

Please sign in to comment.