File tree Expand file tree Collapse file tree 11 files changed +176
-15
lines changed Expand file tree Collapse file tree 11 files changed +176
-15
lines changed Original file line number Diff line number Diff line change 1
1
require 'fileutils'
2
2
3
3
class Admin < Formula
4
- v = "v1.10 .0"
4
+ v = "v1.11 .0"
5
5
plugin_name = "admin"
6
6
path_name = "kn-plugin-#{ plugin_name } "
7
7
file_name = "kn-#{ plugin_name } "
@@ -13,10 +13,10 @@ class Admin < Formula
13
13
14
14
if OS . mac?
15
15
url "#{ base_url } /#{ file_name } -darwin-amd64"
16
- sha256 "a7a55c363a35eabc05f50159d436699e769a3892fb05c6fdd420eba79cf7e9ab "
16
+ sha256 "e0f4fd38135d399b9b51b073e7a3e15b7428e6d1a3b6e03effaf95c0df23753d "
17
17
else
18
18
url "#{ base_url } /#{ file_name } -linux-amd64"
19
- sha256 "ad040536a6fda39d1605dc364f11b714d668ede4a7a385f06a6e89386f56e751 "
19
+ sha256 "36a88a7f4d488ba2b7046087997429d406570b342d6f6797c4703f608cc243f6 "
20
20
end
21
21
22
22
def install
Original file line number Diff line number Diff line change
1
+ require 'fileutils'
2
+
3
+ class AdminAT110 < Formula
4
+ v = "v1.10.0"
5
+ plugin_name = "admin"
6
+ path_name = "kn-plugin-#{ plugin_name } "
7
+ file_name = "kn-#{ plugin_name } "
8
+ base_url = "https://github.com/knative-sandbox/#{ path_name } /releases/download/knative-#{ v } "
9
+
10
+ homepage "https://github.com/knative-sandbox/#{ path_name } "
11
+
12
+ version v
13
+
14
+ if OS . mac?
15
+ url "#{ base_url } /#{ file_name } -darwin-amd64"
16
+ sha256 "a7a55c363a35eabc05f50159d436699e769a3892fb05c6fdd420eba79cf7e9ab"
17
+ else
18
+ url "#{ base_url } /#{ file_name } -linux-amd64"
19
+ sha256 "ad040536a6fda39d1605dc364f11b714d668ede4a7a385f06a6e89386f56e751"
20
+ end
21
+
22
+ def install
23
+ if OS . mac?
24
+ FileUtils . mv ( "kn-admin-darwin-amd64" , "kn-admin" )
25
+ else
26
+ FileUtils . mv ( "kn-admin-linux-amd64" , "kn-admin" )
27
+ end
28
+ bin . install "kn-admin"
29
+ end
30
+
31
+ test do
32
+ system "#{ bin } /kn-admin" , "version"
33
+ end
34
+ end
Original file line number Diff line number Diff line change 4
4
require_relative 'kn/plugin/event'
5
5
6
6
class Event < Formula
7
- PLUGIN = Kn ::Plugin ::Event . new 'v1.10 .0'
7
+ PLUGIN = Kn ::Plugin ::Event . new 'v1.11 .0'
8
8
9
9
homepage PLUGIN . homepage
10
10
version PLUGIN . version
Original file line number Diff line number Diff line change
1
+ require 'fileutils'
2
+ require 'json'
3
+
4
+ require_relative 'kn/plugin/event'
5
+
6
+ class EventAT110 < Formula
7
+ PLUGIN = Kn ::Plugin ::Event . new 'v1.10.0'
8
+
9
+ homepage PLUGIN . homepage
10
+ version PLUGIN . version
11
+ url PLUGIN . url
12
+ sha256 PLUGIN . sha256
13
+
14
+ def install
15
+ FileUtils . mv ( PLUGIN . source_bin , PLUGIN . target_bin )
16
+ bin . install PLUGIN . target_bin
17
+ end
18
+
19
+ test do
20
+ json = shell_output ( "#{ bin } /#{ PLUGIN . target_bin } version -o json" ) . strip
21
+ version_info = JSON . parse ( json )
22
+ assert_equal PLUGIN . version , version_info [ 'version' ]
23
+ end
24
+ end
Original file line number Diff line number Diff line change 17
17
set -e
18
18
19
19
PLUGINS=(" admin" " event" " quickstart" " source-kafka" " source-kamelet" )
20
- CURRENT_RELEASE=${CURRENT_RELEASE:- 1.10 }
21
- PREVIOUS_RELEASE=${PREVIOUS_RELEASE:- 1.9 }
20
+ CURRENT_RELEASE=${CURRENT_RELEASE:- 1.11 }
21
+ PREVIOUS_RELEASE=${PREVIOUS_RELEASE:- 1.10 }
22
22
23
23
for plugin in " ${PLUGINS[@]} " ; do
24
24
Original file line number Diff line number Diff line change 1
1
require 'fileutils'
2
2
3
3
class Quickstart < Formula
4
- v = "v1.10 .0"
4
+ v = "v1.11 .0"
5
5
plugin_name = "quickstart"
6
6
path_name = "kn-plugin-#{ plugin_name } "
7
7
file_name = "kn-#{ plugin_name } "
@@ -13,10 +13,10 @@ class Quickstart < Formula
13
13
14
14
if OS . mac?
15
15
url "#{ base_url } /#{ file_name } -darwin-amd64"
16
- sha256 "1b3ff80c3d07a26b65fb551eaa76d0560841de13371fd40dc790ea67edf83468 "
16
+ sha256 "0cc699ffd36dda8f5a85addc1eb3e32b864b1c9653f50e40560ef330ea5d59ce "
17
17
else
18
18
url "#{ base_url } /#{ file_name } -linux-amd64"
19
- sha256 "6ab28b80fa584c2a99431974cacbd2fc5bc165eb35b31ef9d78219d69a02b010 "
19
+ sha256 "6d5ab1c06e8fa3ae88b34c6b39469366d6e1dbd3626e0ce403bcae5ab63496ed "
20
20
end
21
21
22
22
def install
Original file line number Diff line number Diff line change
1
+ require 'fileutils'
2
+
3
+ class QuickstartAT110 < Formula
4
+ v = "v1.10.0"
5
+ plugin_name = "quickstart"
6
+ path_name = "kn-plugin-#{ plugin_name } "
7
+ file_name = "kn-#{ plugin_name } "
8
+ base_url = "https://github.com/knative-sandbox/#{ path_name } /releases/download/knative-#{ v } "
9
+
10
+ homepage "https://github.com/knative-sandbox/#{ path_name } "
11
+
12
+ version v
13
+
14
+ if OS . mac?
15
+ url "#{ base_url } /#{ file_name } -darwin-amd64"
16
+ sha256 "1b3ff80c3d07a26b65fb551eaa76d0560841de13371fd40dc790ea67edf83468"
17
+ else
18
+ url "#{ base_url } /#{ file_name } -linux-amd64"
19
+ sha256 "6ab28b80fa584c2a99431974cacbd2fc5bc165eb35b31ef9d78219d69a02b010"
20
+ end
21
+
22
+ def install
23
+ if OS . mac?
24
+ FileUtils . mv ( "kn-quickstart-darwin-amd64" , "kn-quickstart" )
25
+ else
26
+ FileUtils . mv ( "kn-quickstart-linux-amd64" , "kn-quickstart" )
27
+ end
28
+ bin . install "kn-quickstart"
29
+ end
30
+
31
+ test do
32
+ system "#{ bin } /kn-quickstart" , "version"
33
+ end
34
+ end
35
+
Original file line number Diff line number Diff line change 1
1
require 'fileutils'
2
2
3
3
class SourceKafka < Formula
4
- v = "v1.10 .0"
4
+ v = "v1.11 .0"
5
5
plugin_name = "source-kafka"
6
6
path_name = "kn-plugin-#{ plugin_name } "
7
7
file_name = "kn-#{ plugin_name } "
@@ -13,10 +13,10 @@ class SourceKafka < Formula
13
13
14
14
if OS . mac?
15
15
url "#{ base_url } /#{ file_name } -darwin-amd64"
16
- sha256 "a63f38f559422ca3407907dc7e157138a24e0087f34646e939342e6b25d657f3 "
16
+ sha256 "149eee8a1ddf9752973c9fac2edc9e3d878dbc80b5c47e81cb3c56583038e013 "
17
17
else
18
18
url "#{ base_url } /#{ file_name } -linux-amd64"
19
- sha256 "a60b6f3458e151780343556aa8854ae39d441c4fc7de9d877f2709feed2a8f82 "
19
+ sha256 "cbd882e10e1f2c8f6f6890a972b85e261db988c96625cfce2ebfed0d0e74af6b "
20
20
end
21
21
22
22
def install
Original file line number Diff line number Diff line change
1
+ require 'fileutils'
2
+
3
+ class SourceKafkaAT110 < Formula
4
+ v = "v1.10.0"
5
+ plugin_name = "source-kafka"
6
+ path_name = "kn-plugin-#{ plugin_name } "
7
+ file_name = "kn-#{ plugin_name } "
8
+ base_url = "https://github.com/knative-sandbox/#{ path_name } /releases/download/knative-#{ v } "
9
+
10
+ homepage "https://github.com/knative-sandbox/#{ path_name } "
11
+
12
+ version v
13
+
14
+ if OS . mac?
15
+ url "#{ base_url } /#{ file_name } -darwin-amd64"
16
+ sha256 "a63f38f559422ca3407907dc7e157138a24e0087f34646e939342e6b25d657f3"
17
+ else
18
+ url "#{ base_url } /#{ file_name } -linux-amd64"
19
+ sha256 "a60b6f3458e151780343556aa8854ae39d441c4fc7de9d877f2709feed2a8f82"
20
+ end
21
+
22
+ def install
23
+ if OS . mac?
24
+ FileUtils . mv ( "kn-source-kafka-darwin-amd64" , "kn-source-kafka" )
25
+ else
26
+ FileUtils . mv ( "kn-source-kafka-linux-amd64" , "kn-source-kafka" )
27
+ end
28
+ bin . install "kn-source-kafka"
29
+ end
30
+
31
+ test do
32
+ system "#{ bin } /kn-source-kafka" , "version"
33
+ end
34
+ end
Original file line number Diff line number Diff line change 1
1
require 'fileutils'
2
2
3
3
class SourceKamelet < Formula
4
- v = "v1.10 .0"
4
+ v = "v1.11 .0"
5
5
plugin_name = "source-kamelet"
6
6
path_name = "kn-plugin-#{ plugin_name } "
7
7
file_name = "kn-#{ plugin_name } "
@@ -13,10 +13,10 @@ class SourceKamelet < Formula
13
13
14
14
if OS . mac?
15
15
url "#{ base_url } /#{ file_name } -darwin-amd64"
16
- sha256 "435d16e73a1fc4825f767b02f31e155217741ffd614687c1f53eb9bd3ded6b61 "
16
+ sha256 "3b9e3070d7f20f915bbd1a57c69abdd97e8f41177e2f66cbf7a0d03349ecd558 "
17
17
else
18
18
url "#{ base_url } /#{ file_name } -linux-amd64"
19
- sha256 "6da394621488a6fb07226699a1ef485260b1bdb47415d5add3b7755a99e42133 "
19
+ sha256 "6ac36f61d08d20d41bdf6a49244c3c388951e3a02f03d2e5dad75b452efd30eb "
20
20
end
21
21
22
22
def install
You can’t perform that action at this time.
0 commit comments