DYAutomate 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45457044d27c0022ac4ba9802ed38f3ce7afc6fd066cbd400f2efb7dea1f64ad
|
4
|
+
data.tar.gz: 4e85482edb3defe6b85f0a79523c50d139b9efcc98b380400e5017ca12e9b4e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee413c45bbf48c49686d561a29c2d885123076c7a2c8865cf264b983f51bc180b8186526804d81eedb6bf373299f15c60e615df06605f85b093653476ee27f6d
|
7
|
+
data.tar.gz: f6b5fff7f147a4148a2a0e926aed5b55ff56acc44a27095a2bb860e2e286309f3680e593c1bc3a5bce1e8f57bbf6e474885ba5e6d2d82939bbc9c1c069d082d4
|
data/lib/DYAutomate/Command.rb
CHANGED
@@ -0,0 +1,58 @@
|
|
1
|
+
|
2
|
+
module DYAutomate
|
3
|
+
class Command
|
4
|
+
class WorkSpace <Command
|
5
|
+
|
6
|
+
class Install < WorkSpace
|
7
|
+
|
8
|
+
# require 'git'
|
9
|
+
# self.abstract_command = true
|
10
|
+
self.command = 'in'
|
11
|
+
self.summary = '更新repo,并install'
|
12
|
+
self.arguments = [
|
13
|
+
# CLAide::Argument.new('NAME', true),
|
14
|
+
]
|
15
|
+
|
16
|
+
# #要查询的lib名字
|
17
|
+
# attr_accessor :name
|
18
|
+
# #查询结果lib信息
|
19
|
+
# attr_accessor :info
|
20
|
+
|
21
|
+
def initialize(argv)
|
22
|
+
# @name = argv.shift_argument
|
23
|
+
super
|
24
|
+
end
|
25
|
+
|
26
|
+
def validate!
|
27
|
+
super
|
28
|
+
# unless @name
|
29
|
+
# help! 'need the lib `NAME`.'
|
30
|
+
# end
|
31
|
+
|
32
|
+
# unless existAtPools?
|
33
|
+
# help! "the podspec file is not exist at #{Dir.pwd}."
|
34
|
+
# end
|
35
|
+
end
|
36
|
+
|
37
|
+
def run
|
38
|
+
pp('pod WorkSpace update run ...',1)
|
39
|
+
Dir.chdir(@path)
|
40
|
+
dy_update_repo
|
41
|
+
do_install
|
42
|
+
end
|
43
|
+
|
44
|
+
def do_install
|
45
|
+
isOk = system "#{@env_str} pod install"
|
46
|
+
if isOk
|
47
|
+
pp("pod install 成功",1)
|
48
|
+
else
|
49
|
+
pp("pod install 失败",1)
|
50
|
+
end
|
51
|
+
system "sleep 3"
|
52
|
+
system "open *.xcworkspace"
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -8,7 +8,7 @@ module DYAutomate
|
|
8
8
|
# require 'git'
|
9
9
|
# self.abstract_command = true
|
10
10
|
self.command = 'up'
|
11
|
-
self.summary = '更新repo,并
|
11
|
+
self.summary = '更新repo,并update'
|
12
12
|
self.arguments = [
|
13
13
|
# CLAide::Argument.new('NAME', true),
|
14
14
|
]
|
@@ -44,9 +44,9 @@ module DYAutomate
|
|
44
44
|
def do_install
|
45
45
|
isOk = system "#{@env_str} pod update --no-repo-update"
|
46
46
|
if isOk
|
47
|
-
pp("pod
|
47
|
+
pp("pod update 成功",1)
|
48
48
|
else
|
49
|
-
pp("pod
|
49
|
+
pp("pod update 失败",1)
|
50
50
|
end
|
51
51
|
system "sleep 3"
|
52
52
|
system "open *.xcworkspace"
|
data/lib/DYAutomate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DYAutomate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 陈冬冬
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/DYAutomate/Command/Git/tagAdd.rb
|
145
145
|
- lib/DYAutomate/Command/Pod/push.rb
|
146
146
|
- lib/DYAutomate/Command/Pod/version.rb
|
147
|
+
- lib/DYAutomate/Command/Workspace/install.rb
|
147
148
|
- lib/DYAutomate/Command/Workspace/update.rb
|
148
149
|
- lib/DYAutomate/Command/dgit.rb
|
149
150
|
- lib/DYAutomate/Command/pod.rb
|