Class: FluentCommandBuilder::XCodeBuild::V43::BuildWorkspace

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, workspace_name, build_action = nil) ⇒ BuildWorkspace

Returns a new instance of BuildWorkspace.



201
202
203
204
205
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 201

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)


206
207
208
209
210
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 206

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

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

Yields:

  • (@b)


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

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)


211
212
213
214
215
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 211

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

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

Yields:

  • (@b)


216
217
218
219
220
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 216

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

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

Yields:

  • (@b)


221
222
223
224
225
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 221

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

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

Yields:

  • (@b)


226
227
228
229
230
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 226

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)


231
232
233
234
235
# File 'lib/fluent_command_builder/command_builders/xcodebuild_43.rb', line 231

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)


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

def setting(setting, value)
  @b.append " #{@b.format setting}=#{@b.format value}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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