ikun 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ikun/command.rb +6 -2
- data/lib/ikun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48014f4aa1cef46d7b68a7281dec3bbc040a7974420cf9ca870345e21ea709fa
|
4
|
+
data.tar.gz: 244ddda343ac5bf05e172f75449aa7aaf9fd8a8a9253b98bf665413817aa5a20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2728c2dc8dc6f922d8df62fdca112b69a159e33ace5ac012e1ba86e1997b74696cec155566edfbb07f203626cce0f95592a487f37f71299804cd9c3d22cafd
|
7
|
+
data.tar.gz: fe40da2138db53316a202329807ee47496e5e9001828dfd83fb3acec41870d85d793f46f71c22582467560f429dd67d80e2a276558164acd7276b2b42be354fd
|
data/lib/ikun/command.rb
CHANGED
@@ -17,7 +17,8 @@ class Setup < Ikun::Command
|
|
17
17
|
['--shipping', '使用shipping路径的MetaWorldMobile.framework'],
|
18
18
|
['--branch=CONTAINER_BRANCH', '项目分支, 默认为main分支'],
|
19
19
|
['--target=BUSINESS_LINE', '业务线(gpark or 233), 默认为gpark, 不区分大小写.'],
|
20
|
-
['--ikun-branch', 'ikun使用哪个分支']
|
20
|
+
['--ikun-branch', 'ikun使用哪个分支'],
|
21
|
+
['--env', '项目环境, target == 233时生效, test/pre/online']
|
21
22
|
].concat(super)
|
22
23
|
end
|
23
24
|
|
@@ -26,6 +27,7 @@ class Setup < Ikun::Command
|
|
26
27
|
@branch = argv.option('branch', 'main')
|
27
28
|
@target = argv.option('target', 'gpark')
|
28
29
|
@ikun = argv.option('ikun-branch', 'main')
|
30
|
+
@env = argv.option('env', 'online')
|
29
31
|
super
|
30
32
|
end
|
31
33
|
|
@@ -33,13 +35,15 @@ class Setup < Ikun::Command
|
|
33
35
|
super
|
34
36
|
target = @target.downcase
|
35
37
|
help! 'target参数必须是gpark或者233' unless target == 'gpark' || target == '233'
|
38
|
+
help! 'env必须是test/pre/online中的一个' unless ['test', 'pre', 'online'].include?(@env)
|
39
|
+
help! 'target == 233时, env参数才有效' unless @target == '233' && @env.length > 0
|
36
40
|
end
|
37
41
|
|
38
42
|
def run
|
39
43
|
FileUtils.rm_rf('ikun') if File.exists?('ikun')
|
40
44
|
`git clone git@gitlab.appshahe.com:shared-specs/ikun.git -b #{@ikun}`
|
41
45
|
FileUtils.cd('ikun')
|
42
|
-
`sh setup.sh -s #{@shipping} -b #{@branch} -t #{@target}`
|
46
|
+
`sh setup.sh -s #{@shipping} -b #{@branch} -t #{@target} -e #{@env}`
|
43
47
|
end
|
44
48
|
end
|
45
49
|
|
data/lib/ikun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ikun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lei.han
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|