Class: FluentCommandBuilder::XCodeBuild::V44::BuildWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, workspace_name, build_action = nil) ⇒ BuildWorkspace

Returns a new instance of BuildWorkspace.



236
237
238
239
240
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 236

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

Instance Method Details

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

Yields:

  • (@b)


241
242
243
244
245
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 241

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

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

Yields:

  • (@b)


301
302
303
304
305
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 301

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)


246
247
248
249
250
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 246

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

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

Yields:

  • (@b)


251
252
253
254
255
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 251

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

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

Yields:

  • (@b)


256
257
258
259
260
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 256

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

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

Yields:

  • (@b)


261
262
263
264
265
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 261

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

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

Yields:

  • (@b)


266
267
268
269
270
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 266

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)


271
272
273
274
275
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 271

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)


296
297
298
299
300
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 296

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)


276
277
278
279
280
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 276

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

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

Yields:

  • (@b)


281
282
283
284
285
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 281

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

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

Yields:

  • (@b)


286
287
288
289
290
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 286

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

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

Yields:

  • (@b)


291
292
293
294
295
# File 'lib/fluent_command_builder/command_builders/xcodebuild_44.rb', line 291

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