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

#execute!, #to_s

Constructor Details

#initialize(builder) ⇒ Version

Returns a new instance of Version.



112
113
114
115
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 112

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

Instance Method Details

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

Yields:

  • (@builder)


121
122
123
124
125
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 121

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

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

Yields:

  • (@builder)


116
117
118
119
120
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 116

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