Class: FluentCommandBuilder::XCodeBuild::V45::Version

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) ⇒ Version

Returns a new instance of Version.



312
313
314
315
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 312

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' -version'
end

Instance Method Details

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

Yields:

  • (@b)


321
322
323
324
325
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 321

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

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

Yields:

  • (@b)


316
317
318
319
320
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 316

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