ecb 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands.rb +1 -0
- data/lib/commands/update_plist.rb +3 -0
- data/lib/commands/verify_provision.rb +60 -0
- data/lib/commands/xcode_build.rb +3 -22
- data/lib/ebmsharedlib/utilities.rb +5 -0
- data/lib/ecb.rb +1 -0
- data/lib/info.rb +1 -1
- metadata +12 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 598b30aa7ac9594a27a785dcd0a1150fa85f3a88
|
4
|
+
data.tar.gz: 3f2b0d30b082e0360e5a6897d064a1e6d28b0f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfd66457dbce2256535a2cd2e92d1dad2f0af01208bbf0e29f8edb9ed5e0597f7b5261c6039c8f2d65a4e6a40514e40a619426629810df44a1a8ba6d42b22d4
|
7
|
+
data.tar.gz: 2b3c9dbf2f913cd6f7f57c7837afa023655df344c7f7cb6f0c9e787916399d308d3333f9290020a09938e5a48540fedbe679505e2adfb12a78078c7db5f6a681
|
data/lib/commands.rb
CHANGED
@@ -41,7 +41,10 @@ module Commands
|
|
41
41
|
#
|
42
42
|
# Getting a plist returned from a mobile provsion file:
|
43
43
|
# security cms -D -i eBay_Core_iPad_Enterprise.mobileprovision
|
44
|
+
# f=File.open("appstore.xcconfig", 'w').readlines
|
45
|
+
# f.write(f)
|
44
46
|
#
|
47
|
+
|
45
48
|
def run(global_options)
|
46
49
|
config_name = options[:config]
|
47
50
|
build = options[:build]
|
@@ -0,0 +1,60 @@
|
|
1
|
+
#
|
2
|
+
# Greg Seitz
|
3
|
+
#
|
4
|
+
# Copyright 2013, eBay Inc.
|
5
|
+
# All rights reserved.
|
6
|
+
# http://www.ebay.com
|
7
|
+
#
|
8
|
+
|
9
|
+
module Commands
|
10
|
+
class VerifyProvision
|
11
|
+
|
12
|
+
# holds the options that were passed
|
13
|
+
# you can set any initial defaults here
|
14
|
+
def options
|
15
|
+
@options ||= {
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
# required options
|
20
|
+
def required_options
|
21
|
+
@required_options ||= Set.new [
|
22
|
+
:config, ]
|
23
|
+
end
|
24
|
+
|
25
|
+
def register(opts, global_options)
|
26
|
+
opts.banner = "Usage: update_plist"
|
27
|
+
opts.description = "Updates the specified plist."
|
28
|
+
opts.on('-c', "--config name", "Required - Name of the config we are building from.") do |v|
|
29
|
+
options[:config] = v
|
30
|
+
end
|
31
|
+
|
32
|
+
opts.on('-v', "--verbose", "Display passed data") do |v|
|
33
|
+
options[:verbose] = true
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Getting a plist returned from a mobile provsion file:
|
39
|
+
# security cms -D -i eBay_Core_iPad_Enterprise.mobileprovision
|
40
|
+
# f=File.open("appstore.xcconfig", 'w').readlines
|
41
|
+
# f.write(f)
|
42
|
+
#
|
43
|
+
def run(global_options)
|
44
|
+
|
45
|
+
config_name = options[:config]
|
46
|
+
verbose = options[:verbose]
|
47
|
+
|
48
|
+
config_repo_url = EcbSharedLib.prepare_config_repo(nil)
|
49
|
+
path_to_provisions = EcbSharedLib.path_to_provision_files(config_repo_url, config_name)
|
50
|
+
Dir.glob('*.mobileprovision').each do |f| {
|
51
|
+
|
52
|
+
#byebug
|
53
|
+
cmd = "security cms -D -i #{f}"
|
54
|
+
provision_data = EcbSharedLib::CL.do_cmd_output(cmd, path_to_provisions)
|
55
|
+
plist_data = Plist::parse_xml(provision_data)
|
56
|
+
puts plist_data["UUID"]
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/lib/commands/xcode_build.rb
CHANGED
@@ -30,10 +30,6 @@ module Commands
|
|
30
30
|
options[:config] = v
|
31
31
|
end
|
32
32
|
|
33
|
-
opts.on('-r', "--config-repo name", EcbSharedLib::REPO_COMMAND_DETAILS) do |v|
|
34
|
-
options[:config_repo] = v
|
35
|
-
end
|
36
|
-
|
37
33
|
opts.on('-a', "--archive archivePath", "Path to build the archive") do |v|
|
38
34
|
options[:archive] = v
|
39
35
|
end
|
@@ -79,8 +75,7 @@ module Commands
|
|
79
75
|
config_name = options[:config]
|
80
76
|
archivePath = options[:archive]
|
81
77
|
|
82
|
-
|
83
|
-
config_repo_url = EcbSharedLib.prepare_config_repo(config_repo)
|
78
|
+
config_repo_url = EcbSharedLib.prepare_config_repo(nil)
|
84
79
|
info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
|
85
80
|
build_config = EcbSharedLib.read_build_config(config_repo_url)
|
86
81
|
|
@@ -93,7 +88,7 @@ module Commands
|
|
93
88
|
cmd = "rm -Rf build"
|
94
89
|
EcbSharedLib::CL.do_cmd(cmd, '.')
|
95
90
|
|
96
|
-
if !archivePath.
|
91
|
+
if !archivePath.nil? then
|
97
92
|
cmd = "rm -Rf #{archivePath}"
|
98
93
|
EcbSharedLib::CL.do_cmd(cmd, '.')
|
99
94
|
end
|
@@ -115,20 +110,6 @@ module Commands
|
|
115
110
|
cmd = "git checkout ."
|
116
111
|
EcbSharedLib::CL.do_cmd(cmd, '.')
|
117
112
|
end
|
118
|
-
|
119
|
-
# finish up by writing settings
|
120
|
-
settings = {
|
121
|
-
:config_repo_url => config_repo_url,
|
122
|
-
:config_name => config_name,
|
123
|
-
}
|
124
|
-
|
125
|
-
# saves the settings to .ecb-settings.json file.
|
126
|
-
# currently inside a git repo, which is probably not the desired behavior.
|
127
|
-
# don't think this is needed for ecb.
|
128
|
-
|
129
|
-
#top_dir = "#{Dir.pwd}/#{config_name}"
|
130
|
-
#EcbSharedLib.write_settings(settings, top_dir, err_msg = nil)
|
131
|
-
end
|
132
|
-
|
113
|
+
end
|
133
114
|
end
|
134
115
|
end
|
@@ -117,6 +117,11 @@ module EcbSharedLib
|
|
117
117
|
File.expand_path(File.join(EcbSharedLib.full_config_path(repo_url), "scripts"))
|
118
118
|
end
|
119
119
|
|
120
|
+
# the full config path
|
121
|
+
def self.path_to_provision_files(repo_url,config_name)
|
122
|
+
File.expand_path(File.join(EcbSharedLib.full_config_path(repo_url), "provision_files/#{config_name}"))
|
123
|
+
end
|
124
|
+
|
120
125
|
|
121
126
|
# takes the repo name (shortcut or full url)
|
122
127
|
# and fetches config into appropriate location
|
data/lib/ecb.rb
CHANGED
data/lib/info.rb
CHANGED
metadata
CHANGED
@@ -1,73 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Hoiberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: subcommand
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
|
-
- - '>='
|
17
|
+
- - '='
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 1.0.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.0'
|
30
|
-
- - '>='
|
24
|
+
- - '='
|
31
25
|
- !ruby/object:Gem::Version
|
32
26
|
version: 1.0.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: json_pure
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- -
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.5'
|
40
|
-
- - '>='
|
31
|
+
- - '='
|
41
32
|
- !ruby/object:Gem::Version
|
42
33
|
version: 1.5.2
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.5'
|
50
|
-
- - '>='
|
38
|
+
- - '='
|
51
39
|
- !ruby/object:Gem::Version
|
52
40
|
version: 1.5.2
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: ruby-hmac
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '0.4'
|
60
|
-
- - '>='
|
45
|
+
- - '='
|
61
46
|
- !ruby/object:Gem::Version
|
62
47
|
version: 0.4.0
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
66
51
|
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.4'
|
70
|
-
- - '>='
|
52
|
+
- - '='
|
71
53
|
- !ruby/object:Gem::Version
|
72
54
|
version: 0.4.0
|
73
55
|
- !ruby/object:Gem::Dependency
|
@@ -88,20 +70,14 @@ dependencies:
|
|
88
70
|
name: plist
|
89
71
|
requirement: !ruby/object:Gem::Requirement
|
90
72
|
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '3.1'
|
94
|
-
- - '>='
|
73
|
+
- - '='
|
95
74
|
- !ruby/object:Gem::Version
|
96
75
|
version: 3.1.0
|
97
76
|
type: :runtime
|
98
77
|
prerelease: false
|
99
78
|
version_requirements: !ruby/object:Gem::Requirement
|
100
79
|
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '3.1'
|
104
|
-
- - '>='
|
80
|
+
- - '='
|
105
81
|
- !ruby/object:Gem::Version
|
106
82
|
version: 3.1.0
|
107
83
|
description: Various utility commands for building eBay mobile Core
|
@@ -118,6 +94,7 @@ files:
|
|
118
94
|
- lib/commands/randombranch.rb
|
119
95
|
- lib/commands/shell.rb
|
120
96
|
- lib/commands/update_plist.rb
|
97
|
+
- lib/commands/verify_provision.rb
|
121
98
|
- lib/commands/version.rb
|
122
99
|
- lib/commands/xcode_build.rb
|
123
100
|
- lib/ebmsharedlib/monkey_patches.rb
|
@@ -147,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
124
|
version: '1.3'
|
148
125
|
requirements: []
|
149
126
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.2.
|
127
|
+
rubygems_version: 2.2.0
|
151
128
|
signing_key:
|
152
129
|
specification_version: 4
|
153
130
|
summary: Core Builder
|