ecb 0.0.27 → 0.0.28

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
  SHA1:
3
- metadata.gz: d77ae2e396638399c3353b73e6895870d5700d80
4
- data.tar.gz: d8705b10e49c6b706d1ace9b1a093b898202d24c
3
+ metadata.gz: d6c26fc156e61dbe196be16e0a698516c3733ce4
4
+ data.tar.gz: ccd1283c478933c9884d055534c08adb92ad6417
5
5
  SHA512:
6
- metadata.gz: 4c539085227247bfcaa31e3acc1ffd794ca8ab0de741b5f6a7065f2f825ebef821a8abb385aa5f1613bc3e965b6543c3b3a5279a7aca001424449b175eff14a7
7
- data.tar.gz: a3af658e11075128c494105707977e18000cabb2f6b6bba333ddfaa92e78a78ba25838e7f1f6dc2196d8f02b2fd5d9fc700066097bf7e94ae29ff1da5f1971c8
6
+ metadata.gz: 92f5971e39915d835f1b742f9832873c43ef92aa1fe3b050c7d6650f3344492a79423643c6df907084e49fb21b5d789bb92aed813276bdfa314c0f39c89ab777
7
+ data.tar.gz: 9d3daa7b0a115f4104931b0b3056406a9c1ebeb7809a40bfdbe3248ea2dcae838470a8940a429ef4c571077ce4c540d5af66dd9d094dfd2ed91595b2afefe613
@@ -40,11 +40,14 @@ module Commands
40
40
  options[:config] = v
41
41
  end
42
42
  =end
43
+ opts.on('-b', "--branch config branch name", "Use build config branch") do |v|
44
+ options[:branch] = v
45
+ end
43
46
 
44
47
  opts.on('-n', "--product-name name", "Required") do |v|
45
48
  options[:product_name] = v
46
49
  end
47
- opts.on('-b', "--bundle-indentifer Bundle Identitifer", "Required") do |v|
50
+ opts.on('-i', "--bundle-indentifer Bundle Identitifer", "Required") do |v|
48
51
  options[:bundleid] = v
49
52
  end
50
53
  opts.on('-p', "--product-key key", "Required") do |v|
@@ -77,9 +80,11 @@ module Commands
77
80
  end
78
81
 
79
82
  def run(global_options)
83
+ config_branch = options[:branch]
84
+ config_repo_url = EcbSharedLib.prepare_config_repo(config_branch)
85
+
80
86
  =begin
81
87
  config_name = options[:config]
82
- config_repo_url = EcbSharedLib.prepare_config_repo(config_repo)
83
88
  info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
84
89
  bundleid = info[:bundleid]
85
90
  product_key = info[:product_key]
@@ -87,6 +92,7 @@ module Commands
87
92
  device = info[:device]
88
93
  wiki_key = info[:wiki_key]
89
94
  =end
95
+
90
96
  bundleid = options[:bundleid]
91
97
  product_key = options[:product_key]
92
98
  product_name = options[:product_name]
@@ -98,7 +104,6 @@ module Commands
98
104
  fix_versions = options[:fix_versions]
99
105
  usenew = !!options[:usenew] ? "--usenew" : ""
100
106
  usecli = !!options[:usecli] ? "--usecli" : ""
101
- config_repo_url = EcbSharedLib.prepare_config_repo(nil)
102
107
  scriptsPath = EcbSharedLib.path_to_scripts(config_repo_url)
103
108
  cmd = "./masterpromote.sh --bundleID #{bundleid} --projectKey #{product_key} \
104
109
  --productName #{product_name} --device #{device} --wikiKey #{wiki_key} \
@@ -24,10 +24,14 @@ module Commands
24
24
  def register(opts, global_options)
25
25
  opts.banner = "Usage: shell"
26
26
  opts.description = "Test running of a shell script."
27
+ opts.on('-b', "--branch config branch name", "Use build config branch") do |v|
28
+ options[:branch] = v
29
+ end
27
30
  end
28
31
 
29
32
  def run(global_options)
30
- config_repo_url = EcbSharedLib.prepare_config_repo(nil)
33
+ config_branch = options[:branch]
34
+ config_repo_url = EcbSharedLib.prepare_config_repo(config_branch)
31
35
  base = EcbSharedLib.full_config_path(config_repo_url)
32
36
  newpath = File.expand_path(File.join(base, "scripts"))
33
37
  cmd = "./ecb_test.sh"
@@ -30,12 +30,17 @@ module Commands
30
30
  opts.on('-c', "--config name", "Required - Name of the config we are building from.") do |v|
31
31
  options[:config] = v
32
32
  end
33
- opts.on('-b', "--build number", "Required - build number used to update plist") do |v|
33
+ opts.on('-n', "--build number", "Required - build number used to update plist") do |v|
34
34
  options[:build] = v
35
35
  end
36
+
36
37
  opts.on('-v', "--verbose", "Display passed data") do |v|
37
38
  options[:verbose] = true
38
39
  end
40
+
41
+ opts.on('-b', "--branch config branch name", "Use build config branch") do |v|
42
+ options[:branch] = v
43
+ end
39
44
  end
40
45
 
41
46
  #
@@ -47,8 +52,9 @@ module Commands
47
52
 
48
53
  def run(global_options)
49
54
  config_name = options[:config]
55
+ config_branch = options[:branch]
50
56
  build = options[:build]
51
- config_repo_url = EcbSharedLib.prepare_config_repo(nil)
57
+ config_repo_url = EcbSharedLib.prepare_config_repo(config_branch)
52
58
  info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
53
59
  info_plist = info[:info_plist]
54
60
  enterprise_info_plist = info[:enterprise_info_plist]
@@ -28,6 +28,10 @@ module Commands
28
28
  opts.on('-c', "--config name", "Required - Name of the config we are building from.") do |v|
29
29
  options[:config] = v
30
30
  end
31
+
32
+ opts.on('-b', "--branch config branch name", "Use build config branch") do |v|
33
+ options[:branch] = v
34
+ end
31
35
 
32
36
  opts.on('-v', "--verbose", "Display passed data") do |v|
33
37
  options[:verbose] = true
@@ -44,12 +48,11 @@ module Commands
44
48
 
45
49
  config_name = options[:config]
46
50
  verbose = options[:verbose]
51
+ config_branch = options[:branch]
47
52
 
48
- config_repo_url = EcbSharedLib.prepare_config_repo(nil)
53
+ config_repo_url = EcbSharedLib.prepare_config_repo(config_branch)
49
54
  path_to_provisions = EcbSharedLib.path_to_provision_files(config_repo_url, config_name)
50
55
  Dir.glob('*.mobileprovision').each do |f|
51
-
52
- #byebug
53
56
  cmd = "security cms -D -i #{f}"
54
57
  provision_data = EcbSharedLib::CL.do_cmd_output(cmd, path_to_provisions)
55
58
  plist_data = Plist::parse_xml(provision_data)
@@ -39,7 +39,7 @@ module Commands
39
39
  options[:archive_build] = true
40
40
  end
41
41
 
42
- opts.on('-a', "--branch config branch name", "Use build config branch") do |v|
42
+ opts.on('-b', "--branch config branch name", "Use build config branch") do |v|
43
43
  options[:branch] = v
44
44
  end
45
45
 
@@ -114,10 +114,10 @@ module Commands
114
114
  deliverablesPath = options[:deliverables]
115
115
  archive_build = options[:archive_build]
116
116
 
117
- config_repo_url = EcbSharedLib.prepare_config_repo(nil, config_branch)
117
+ config_repo_url = EcbSharedLib.prepare_config_repo(config_branch)
118
118
  info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
119
119
  build_config = EcbSharedLib.read_build_config(config_repo_url)
120
-
120
+ byebug
121
121
  # Now that we have the json, prepare the world by creating a directory with the config name and placing
122
122
  # the various repos beneath that. The directory is created relative to the current directory.
123
123
 
@@ -126,9 +126,9 @@ module EcbSharedLib
126
126
  # takes the repo name (shortcut or full url)
127
127
  # and fetches config into appropriate location
128
128
  # returns the full repo_url
129
- def self.prepare_config_repo(config_repo_url, config_branch)
129
+ def self.prepare_config_repo(config_branch)
130
130
  # get the full url
131
- repo_url = EcbSharedLib.get_config_repo_url(config_repo_url)
131
+ repo_url = EcbSharedLib.get_config_repo_url(nil)
132
132
 
133
133
  # get the local config dir
134
134
  base_config_path = base_config_path(repo_url)
@@ -7,6 +7,6 @@
7
7
  #
8
8
  class Info
9
9
  def self.version
10
- "0.0.27"
10
+ "0.0.28"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hoiberg