gct 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gct/command/repo/add.rb +33 -0
- data/lib/gct/command/repo/push.rb +33 -0
- data/lib/gct/command/repo/update.rb +34 -0
- data/lib/gct/command/repo.rb +15 -0
- data/lib/gct/command.rb +1 -0
- data/lib/gct/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c7ada5071bbd9de394ab1ea7a2ea4abc3c4c41c4ff396082d69d132f0c1759
|
4
|
+
data.tar.gz: 85fbcd6384cc4b83e7a2c5773e5935b1f857e85aa752be3d4c82afb37c92d6c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff41d2c1e874150d59d86b37960d5a363d1f7ee05e66c1eef9ab917b1f03dca4722bf35b170481bd115de8e58943223b11e30201c6e9a186552b722492b2433
|
7
|
+
data.tar.gz: 0254aa3ecd8276b0d17023fc86ea1ad9f7b6a6e1e3718e12eba9d791a8e7e6cedbfe6145cd006de1f4675b9a976be818ed9d344c7e4b17e8d388115ef0aa383d
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Gct
|
2
|
+
class Command
|
3
|
+
class Repo < Command
|
4
|
+
class Add < Repo
|
5
|
+
|
6
|
+
self.summary = '添加repo'
|
7
|
+
self.description = <<-DESC
|
8
|
+
添加repo到/Users/用户名/.cocoapods/repos/文件下
|
9
|
+
DESC
|
10
|
+
|
11
|
+
self.arguments = [
|
12
|
+
]
|
13
|
+
|
14
|
+
def initialize(argv)
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def validate!
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def run
|
23
|
+
addRepo
|
24
|
+
end
|
25
|
+
|
26
|
+
def addRepo
|
27
|
+
puts "pod命令为:pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git".green
|
28
|
+
system "pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Gct
|
2
|
+
class Command
|
3
|
+
class Repo < Command
|
4
|
+
class Push < Repo
|
5
|
+
|
6
|
+
self.summary = '推送podspec文件到私有repo'
|
7
|
+
self.description = <<-DESC
|
8
|
+
推送podspec文件到私有repo
|
9
|
+
DESC
|
10
|
+
|
11
|
+
self.arguments = [
|
12
|
+
]
|
13
|
+
|
14
|
+
def initialize(argv)
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def validate!
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def run
|
23
|
+
pushRepo
|
24
|
+
end
|
25
|
+
|
26
|
+
def pushRepo
|
27
|
+
puts "pod 命令为:pod repo push iOSCRGTPodSource --sources=#{Constant.GitURL}iOSCRGTPodSource.git --verbose --skip-import-validation --use-libraries --allow-warnings".green
|
28
|
+
system "pod repo push iOSCRGTPodSource --sources=#{Constant.GitURL}iOSCRGTPodSource.git --verbose --skip-import-validation --use-libraries --allow-warnings"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Gct
|
2
|
+
class Command
|
3
|
+
class Repo < Command
|
4
|
+
class Update < Repo
|
5
|
+
|
6
|
+
self.summary = '更新repo'
|
7
|
+
self.description = <<-DESC
|
8
|
+
更新私有repo
|
9
|
+
DESC
|
10
|
+
|
11
|
+
self.arguments = [
|
12
|
+
]
|
13
|
+
|
14
|
+
def initialize(argv)
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def validate!
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def run
|
23
|
+
updateRepo
|
24
|
+
end
|
25
|
+
|
26
|
+
def updateRepo
|
27
|
+
puts "pod命令为:pod repo update iOSCRGTPodSource".green
|
28
|
+
system "pod repo update iOSCRGTPodSource"
|
29
|
+
puts "如果找不到 iOSCRGTPodSource 文件,先执行gct repo add".green
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'gct/command/repo/add'
|
2
|
+
require 'gct/command/repo/update'
|
3
|
+
require 'gct/command/repo/push'
|
4
|
+
|
5
|
+
module Gct
|
6
|
+
class Command
|
7
|
+
class Repo < Command
|
8
|
+
self.abstract_command = true
|
9
|
+
self.summary = 'repo相关操作'
|
10
|
+
self.description = <<-DESC
|
11
|
+
更新、添加repo
|
12
|
+
DESC
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/gct/command.rb
CHANGED
data/lib/gct/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jieming
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,6 +135,10 @@ files:
|
|
135
135
|
- lib/gct/command/op/gems.rb
|
136
136
|
- lib/gct/command/op/gitconf.rb
|
137
137
|
- lib/gct/command/op/xcache.rb
|
138
|
+
- lib/gct/command/repo.rb
|
139
|
+
- lib/gct/command/repo/add.rb
|
140
|
+
- lib/gct/command/repo/push.rb
|
141
|
+
- lib/gct/command/repo/update.rb
|
138
142
|
- lib/gct/command/spec.rb
|
139
143
|
- lib/gct/command/spec/lint.rb
|
140
144
|
- lib/gct/constant.rb
|