DYAutomate 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59d632c27493f0251c4afdfbf624946676c995269265fc52a6dd7796fceeb5f1
4
- data.tar.gz: a3a3553fd049e159bc905faea7a91c5824398af525040af1555065d4d0e3147f
3
+ metadata.gz: 45457044d27c0022ac4ba9802ed38f3ce7afc6fd066cbd400f2efb7dea1f64ad
4
+ data.tar.gz: 4e85482edb3defe6b85f0a79523c50d139b9efcc98b380400e5017ca12e9b4e8
5
5
  SHA512:
6
- metadata.gz: e028e53c5b26b8d5e02861faf4c46cad90d7c6fbae63da32a4a79141016256eb9757fa7934f38306725388d4f641e9b1c51a9ececefbde273b96f5b5136d061f
7
- data.tar.gz: '059339f0108aad5fccb77b004db5d16dabaa6e6b6fd9a02c712fdbde4a0c8f35a81373a3b88431793a936fd5402d73259364dd7697b378c1ff48645d879b6bdc'
6
+ metadata.gz: ee413c45bbf48c49686d561a29c2d885123076c7a2c8865cf264b983f51bc180b8186526804d81eedb6bf373299f15c60e615df06605f85b093653476ee27f6d
7
+ data.tar.gz: f6b5fff7f147a4148a2a0e926aed5b55ff56acc44a27095a2bb860e2e286309f3680e593c1bc3a5bce1e8f57bbf6e474885ba5e6d2d82939bbc9c1c069d082d4
@@ -23,6 +23,7 @@ module DYAutomate
23
23
  super
24
24
  @repoName = CoreConfig::Core_previte_repo_name
25
25
  @env_str = CoreConfig::Core_env_str
26
+ pp("当前环境变量 #{@env_str}",1)
26
27
  end
27
28
 
28
29
  def self.options
@@ -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,并install'
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 install 成功",1)
47
+ pp("pod update 成功",1)
48
48
  else
49
- pp("pod install 失败",1)
49
+ pp("pod update 失败",1)
50
50
  end
51
51
  system "sleep 3"
52
52
  system "open *.xcworkspace"
@@ -2,6 +2,8 @@ module DYAutomate
2
2
  class Command
3
3
  class WorkSpace < Command
4
4
  require 'Command/WorkSpace/update.rb'
5
+ require 'Command/WorkSpace/install.rb'
6
+
5
7
  self.abstract_command = true
6
8
  self.command = 'ws'
7
9
  self.summary = '项目工程workspace的相关操作'
@@ -1,3 +1,3 @@
1
1
  module DYAutomate
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
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.8
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-06-26 00:00:00.000000000 Z
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