ecb 0.0.2 → 0.0.3

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: e1eb1dd0fb7b6ffe99523933ec0c13577f9460af
4
- data.tar.gz: 3c6de04a3e02783c8b4162ac1b05137455967817
3
+ metadata.gz: d2195395bfb25f9adb652d49bc962a30519de48e
4
+ data.tar.gz: 5c73f50e6229b3672f2737beb217b6e97646f376
5
5
  SHA512:
6
- metadata.gz: 7e15c4f45993fab11a5372ff8b8975760d4fe62360cc2d981ddb96e12358478494f54fce11726df47f2e09ecce7052a7254cf0a94752ab538a4d13d76aa3d7e7
7
- data.tar.gz: 1c9e6ce3c6019e57848b41f939220de8935de69978e8e3893face05afe2a5dc7daa991c854fd41eeef32b2b57dc607f6a772a4190bb3714a7b71345d9a6f994f
6
+ metadata.gz: e8d8ce9ff05aa2adb9ee52aa62a5b247b02ebae86b4dc33e2dae8349142f0b1dadfacda2a05f713b7476ec84ce34fd04dd9a444e64510d3a7d9735b288df2e98
7
+ data.tar.gz: d946574bbbe51a5bcaaabb834b592e9e3a7bd48f853dad7b6193bb92d932275be04f3c071fd0f34d20013b2a8e0234152af2744af98e911db25e88aa94877496
@@ -19,7 +19,6 @@ module Commands
19
19
  def required_options
20
20
  @required_options ||= Set.new [
21
21
  :config,
22
- :branch
23
22
  ]
24
23
  end
25
24
 
@@ -30,9 +29,6 @@ module Commands
30
29
  opts.on('-c', "--config name", "Required - Name of the config we are building from.") do |v|
31
30
  options[:config] = v
32
31
  end
33
- opts.on('-b', "--branch name", "Required - Name git branch that we are building from.") do |v|
34
- options[:branch] = v
35
- end
36
32
 
37
33
  opts.on('-r', "--config-repo name", EcbSharedLib::REPO_COMMAND_DETAILS) do |v|
38
34
  options[:config_repo] = v
@@ -48,7 +44,7 @@ module Commands
48
44
  # if the repo specifies a branch then we will do the initial fetch from that branch
49
45
  # if the create_dev_branch flag is set, we will create a local and tracking branch with
50
46
  # the developer initials prepended
51
- def do_build(build, archivePath, branch)
47
+ def do_build(build, archivePath)
52
48
  workspace = build[:workspace]
53
49
  scheme = build[:scheme]
54
50
  xcconfig = build[:xcconfig]
@@ -57,9 +53,7 @@ module Commands
57
53
  configuration = build[:configuration]
58
54
  extra_configs = build[:extra_configs]
59
55
  provisioning_file = build[:provisioning_file]
60
-
61
- branchCmd = "git push --delete origin #{branch}"
62
-
56
+
63
57
  if !archivePath.empty? then
64
58
  archive = 'archive'
65
59
  else
@@ -68,14 +62,12 @@ module Commands
68
62
 
69
63
  cmd = "xcodebuild #{archive} -workspace #{workspace} -scheme #{scheme} -xcconfig '#{xcconfig}' -configuration #{configuration} -derivedDataPath build -archivePath '#{archivePath}/#{archiveName}' #{extra_configs}"
70
64
  if EcbSharedLib::CL.do_cmd_result(cmd, '.') != 0
71
- EcbSharedLib::CL.do_cmd(branchCmd, '.')
72
65
  raise "Xcode Build failed."
73
66
  end
74
67
 
75
68
  if !archivePath.empty? then
76
69
  cmd = "xcodebuild -exportArchive -exportFormat IPA -archivePath '#{archivePath}/#{archiveName}' -exportPath '#{archivePath}/#{exportName}' -exportProvisioningProfile '#{provisioning_file}'"
77
70
  if EcbSharedLib::CL.do_cmd_result(cmd, '.') != 0
78
- EcbSharedLib::CL.do_cmd(branchCmd, '.')
79
71
  raise "Xcode Export Arcive failed."
80
72
  end
81
73
  end
@@ -86,7 +78,6 @@ module Commands
86
78
  # the file is expected to be in JSON format
87
79
  config_name = options[:config]
88
80
  archivePath = options[:archive]
89
- branch = options[:branch]
90
81
 
91
82
  config_repo = options[:config_repo]
92
83
  config_repo_url = EcbSharedLib.prepare_config_repo(config_repo)
@@ -105,7 +96,7 @@ module Commands
105
96
 
106
97
  builds = info[:builds]
107
98
  builds.each do |build|
108
- do_build(build, archivePath, branch)
99
+ do_build(build, archivePath)
109
100
  cmd = "git checkout ."
110
101
  EcbSharedLib::CL.do_cmd(cmd, '.')
111
102
  end
data/lib/ecb.rb CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  require "fileutils"
10
10
  require "pathname"
11
- #require 'plist'
11
+ require 'plist'
12
12
 
13
13
  $:.unshift(File.dirname(__FILE__))
14
14
  models = File.expand_path('../../models', __FILE__)
@@ -7,6 +7,6 @@
7
7
  #
8
8
  class Info
9
9
  def self.version
10
- "0.0.2"
10
+ "0.0.3"
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hoiberg