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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 488a3c5f4815c40ae02294499acb20770b78d1a7789aab5b709082c68efe4f35
4
- data.tar.gz: a761a7d0166d42d1dfcaba894cd456e6ea306d0f5edde717f56cb78a6a6de54b
3
+ metadata.gz: a19d7aee1dff75223e4ae05caca608d28af9b15a6d8ead92b73e762c9f6e1db9
4
+ data.tar.gz: 3647facb9f9d7720e86474b760af676cd5d351bd62232aeb3cafaccd45c35fbe
5
5
  SHA512:
6
- metadata.gz: aa07c1a77398558bc1fcf8c04fb8b02df83d747f720152e7a369a6c33aac6dc8d1df303366549fce9be75b580c8c40b3b4333c47106338a8aeb26de23fd118c7
7
- data.tar.gz: f762ad8ed262d8b41e8eceb989dbddb0a7bf23845b37f6015016eff654813ce40a58b4cb83dc206c654a2039b34d2198d1acc4b762e97ca90ea5223d80cb4753
6
+ metadata.gz: 56e26a26292359b1f4012dda266dd25d1bb460bbadc7fc6a2feca89fd37c83590ef1f4485f34578d5d2a1a43c465ed366a06ed39cca1a7ab17c64f21f214c702
7
+ data.tar.gz: de9aef38fc284b8fd7649b33b0f6fdbe35c0e6a17dcfca87b5e592f9d0047dee475d29b063e75616e95eec9cd44f5494e54050899b662ef03b009c62e07095cc
@@ -24,8 +24,9 @@ module DYAutomate
24
24
  attr_accessor :spec_name
25
25
 
26
26
  def initialize(argv)
27
- @path = Dir.pwd
28
27
  super
28
+ @path = Dir.pwd
29
+ pp("当前环境变量 #{@env_str}",1)
29
30
  end
30
31
 
31
32
  def validate!
@@ -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 "#{@evn_str} pod repo update #{subDir}"
88
+ system "#{@env_str} pod repo update #{subDir}"
87
89
  end
88
90
  end
89
91
  end
@@ -13,7 +13,8 @@ module DYAutomate
13
13
  require 'Command/codeSnippet'
14
14
 
15
15
  attr_accessor :config
16
- attr_accessor :config
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
- pp("当前环境变量 #{env_str}",1)
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
- @config.detailObj.private_repo_name if @config
56
- end
57
-
58
- def env_str
59
- @config.detailObj.env_str if @config
60
- end
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
@@ -1,3 +1,3 @@
1
1
  module DYAutomate
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DYAutomate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 陈冬冬