Skip to content

Commit

Permalink
Update kn formula to new version (#217)
Browse files Browse the repository at this point in the history
Co-authored-by: knative-prow <102343687+knative-prow@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and knative-prow[bot] authored Oct 25, 2024
1 parent ba126f8 commit 15aea49
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 6 deletions.
12 changes: 6 additions & 6 deletions event.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Generated through hack/update-codegen.sh. Don't edit manually.
# Next line is used to identify version of the file.
# event_version:1.15.0
# event_version:1.16.0
require "fileutils"

class Event < Formula
homepage "https://github.com/knative-extensions/kn-plugin-event"

v = "knative-v1.15.0"
v = "knative-v1.16.0"
version v

if OS.mac? && Hardware::CPU.intel?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-darwin-amd64"
sha256 "b6783bc22d7aa99793e0da742b455199afca708711481a1fecb4fa3676410de8"
sha256 "17f4b80092a2458648c8fc1caba319e84b19f28c117a20180e0067d70cf78623"
elsif OS.mac? && Hardware::CPU.arm?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-darwin-arm64"
sha256 "118b800288bf5125d9d2c3fc192cdb062e82e7d266b9c045464d590185901e17"
sha256 "92a31d118f64b439431cc8029ecfefe8df332e8808cad5c4327696368776d20a"
elsif OS.linux? && Hardware::CPU.arm?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-linux-arm64"
sha256 "0fc182cf59fda681ff1ea798cd814f3eb26932ac9fa1cb6874f3b630f897484d"
sha256 "37e1ee25eb418316860eae4d0a35e5dc04be57ff2bc13827936a3babdde276aa"
else
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-linux-amd64"
sha256 "7aee5b8587532a145648d8f0871777f41bee651b026fc029a54e9d764e204188"
sha256 "39b73b1dd4a569c1fc7a54863ad8abec20c5f4d15b153dff115f6fb8037c3e5a"
end

def install
Expand Down
43 changes: 43 additions & 0 deletions event@1.15.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated through hack/update-codegen.sh. Don't edit manually.
# Next line is used to identify version of the file.
# event_version:1.15.0
require "fileutils"

class EventAT115 < Formula
homepage "https://github.com/knative-extensions/kn-plugin-event"

v = "knative-v1.15.0"
version v

if OS.mac? && Hardware::CPU.intel?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-darwin-amd64"
sha256 "b6783bc22d7aa99793e0da742b455199afca708711481a1fecb4fa3676410de8"
elsif OS.mac? && Hardware::CPU.arm?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-darwin-arm64"
sha256 "118b800288bf5125d9d2c3fc192cdb062e82e7d266b9c045464d590185901e17"
elsif OS.linux? && Hardware::CPU.arm?
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-linux-arm64"
sha256 "0fc182cf59fda681ff1ea798cd814f3eb26932ac9fa1cb6874f3b630f897484d"
else
url "https://github.com/knative-extensions/kn-plugin-event/releases/download/#{v}/kn-event-linux-amd64"
sha256 "7aee5b8587532a145648d8f0871777f41bee651b026fc029a54e9d764e204188"
end

def install
if OS.mac? && Hardware::CPU.intel?
FileUtils.mv("kn-event-darwin-amd64", "kn-event")
elsif OS.mac? && Hardware::CPU.arm?
FileUtils.mv("kn-event-darwin-arm64", "kn-event")
elsif OS.linux? && Hardware::CPU.arm?
FileUtils.mv("kn-event-linux-arm64", "kn-event")
else
FileUtils.mv("kn-event-linux-amd64", "kn-event")
end
bin.install "kn-event"

end

test do
system "#{bin}/kn-event", "version"
end
end

0 comments on commit 15aea49

Please sign in to comment.