DYAutomate 1.1.1 → 1.1.2
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 +4 -4
- data/lib/DYAutomate/Command/pod.rb +2 -1
- data/lib/DYAutomate/Command/workspace.rb +4 -2
- data/lib/DYAutomate/Command.rb +14 -10
- data/lib/DYAutomate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a19d7aee1dff75223e4ae05caca608d28af9b15a6d8ead92b73e762c9f6e1db9
|
4
|
+
data.tar.gz: 3647facb9f9d7720e86474b760af676cd5d351bd62232aeb3cafaccd45c35fbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e26a26292359b1f4012dda266dd25d1bb460bbadc7fc6a2feca89fd37c83590ef1f4485f34578d5d2a1a43c465ed366a06ed39cca1a7ab17c64f21f214c702
|
7
|
+
data.tar.gz: de9aef38fc284b8fd7649b33b0f6fdbe35c0e6a17dcfca87b5e592f9d0047dee475d29b063e75616e95eec9cd44f5494e54050899b662ef03b009c62e07095cc
|
@@ -23,9 +23,10 @@ module DYAutomate
|
|
23
23
|
attr_accessor :workSpace_path
|
24
24
|
|
25
25
|
def initialize(argv)
|
26
|
-
@path = Dir.pwd
|
27
26
|
# @path = '/Users/cw/Documents/Dy/Apps/doing/doing'
|
28
27
|
super
|
28
|
+
@path = Dir.pwd
|
29
|
+
puts "env == #{@env_str}"
|
29
30
|
end
|
30
31
|
|
31
32
|
def validate!
|
@@ -46,6 +47,7 @@ module DYAutomate
|
|
46
47
|
|
47
48
|
def run
|
48
49
|
pp('WorkSpace run ...',1)
|
50
|
+
pp("当前环境变量 #{@env_str}",1)
|
49
51
|
end
|
50
52
|
|
51
53
|
#project文件是否存在
|
@@ -83,7 +85,7 @@ module DYAutomate
|
|
83
85
|
Dir.entries(path).each do |subDir|
|
84
86
|
puts subDir
|
85
87
|
unless excludeFiles.include?(subDir)
|
86
|
-
system "#{@
|
88
|
+
system "#{@env_str} pod repo update #{subDir}"
|
87
89
|
end
|
88
90
|
end
|
89
91
|
end
|
data/lib/DYAutomate/Command.rb
CHANGED
@@ -13,7 +13,8 @@ module DYAutomate
|
|
13
13
|
require 'Command/codeSnippet'
|
14
14
|
|
15
15
|
attr_accessor :config
|
16
|
-
attr_accessor :
|
16
|
+
attr_accessor :env_str
|
17
|
+
attr_accessor :repo_name
|
17
18
|
|
18
19
|
self.abstract_command = true
|
19
20
|
self.command = 'dj'
|
@@ -26,7 +27,8 @@ module DYAutomate
|
|
26
27
|
def initialize(argv)
|
27
28
|
super
|
28
29
|
@config = DYAutomateConfig.loadConfig
|
29
|
-
|
30
|
+
@env_str = @config.detailObj.env_str if @config
|
31
|
+
@repoName = @config.detailObj.private_repo_name if @config
|
30
32
|
end
|
31
33
|
|
32
34
|
def self.options
|
@@ -50,14 +52,16 @@ module DYAutomate
|
|
50
52
|
puts msg.red if msg
|
51
53
|
end
|
52
54
|
end
|
53
|
-
|
54
|
-
def repoName
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
55
|
+
#
|
56
|
+
# def repoName
|
57
|
+
# @repoName = @config.detailObj.private_repo_name if @config
|
58
|
+
# @repoName
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# def env_str
|
62
|
+
# @env_str = @config.detailObj.env_str if @config
|
63
|
+
# @env_str
|
64
|
+
# end
|
61
65
|
|
62
66
|
end
|
63
67
|
end
|
data/lib/DYAutomate/version.rb
CHANGED