Class: FluentCommandBuilder::XCodeBuild::V45::BuildProjectScheme

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/xcodebuild_45.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, build_action = nil) ⇒ BuildProjectScheme

Returns a new instance of BuildProjectScheme.



169
170
171
172
173
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 169

def initialize(underlying_builder, build_action=nil)
  super underlying_builder
  @b.append ' '
  @b.append "#{@b.format build_action, ' '}" unless build_action.nil?
end

Instance Method Details

#architecture(architecture) {|@b| ... } ⇒ Object

Yields:

  • (@b)


174
175
176
177
178
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 174

def architecture(architecture)
  @b.append " -arch #{@b.format architecture}"
  yield @b if block_given?
  self
end

#build_action(build_action) {|@b| ... } ⇒ Object

Yields:

  • (@b)


234
235
236
237
238
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 234

def build_action(build_action)
  @b.append " #{@b.format build_action, ' '}"
  yield @b if block_given?
  self
end

#configuration(configuration_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


179
180
181
182
183
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 179

def configuration(configuration_name)
  @b.append " -configuration #{@b.format configuration_name}"
  yield @b if block_given?
  self
end

#dry_run {|@b| ... } ⇒ Object

Yields:

  • (@b)


184
185
186
187
188
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 184

def dry_run
  @b.append ' -dry-run'
  yield @b if block_given?
  self
end

#jobs(number) {|@b| ... } ⇒ Object

Yields:

  • (@b)


189
190
191
192
193
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 189

def jobs(number)
  @b.append " -jobs #{@b.format number}"
  yield @b if block_given?
  self
end

#parallelize_targets {|@b| ... } ⇒ Object

Yields:

  • (@b)


194
195
196
197
198
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 194

def parallelize_targets
  @b.append ' -parallelizeTargets'
  yield @b if block_given?
  self
end

#scheme(scheme_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


199
200
201
202
203
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 199

def scheme(scheme_name)
  @b.append " -scheme #{@b.format scheme_name}"
  yield @b if block_given?
  self
end

#sdk(sdk_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


204
205
206
207
208
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 204

def sdk(sdk_name)
  @b.append " -sdk #{@b.format sdk_name}"
  yield @b if block_given?
  self
end

#setting(setting, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


229
230
231
232
233
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 229

def setting(setting, value)
  @b.append " #{@b.format setting}=#{@b.format value}"
  yield @b if block_given?
  self
end

#show_build_settings {|@b| ... } ⇒ Object

Yields:

  • (@b)


209
210
211
212
213
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 209

def show_build_settings
  @b.append ' -showBuildSettings'
  yield @b if block_given?
  self
end

#toolchain(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


214
215
216
217
218
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 214

def toolchain(name)
  @b.append " -toolchain #{@b.format name}"
  yield @b if block_given?
  self
end

#verbose {|@b| ... } ⇒ Object

Yields:

  • (@b)


219
220
221
222
223
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 219

def verbose
  @b.append ' -verbose'
  yield @b if block_given?
  self
end

#xcconfig(path) {|@b| ... } ⇒ Object

Yields:

  • (@b)


224
225
226
227
228
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 224

def xcconfig(path)
  @b.append " -xcconfig #{@b.format path}"
  yield @b if block_given?
  self
end