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.



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

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

Instance Method Details

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

Yields:

  • (@b)


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

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)


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

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