Class: FluentCommandBuilder::XCodeBuild::V43::Version

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/xcodebuild_43.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.



258
259
260
261
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 258

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

Instance Method Details

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

Yields:

  • (@b)


267
268
269
270
271
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 267

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)


262
263
264
265
266
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 262

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